java - 下载破折号后Android将exo转换为mp4
问题描述
我已经通过 exo 播放器提供的 android DashDownloader 类下载了基于 HTTP 的动态自适应流式传输(DASH)。
SimpleCache cache = new SimpleCache(file.getAbsoluteFile(), new NoOpCacheEvictor());
DefaultHttpDataSourceFactory factory = new DefaultHttpDataSourceFactory("ExoPlayer", null);
DownloaderConstructorHelper constructorHelper = new DownloaderConstructorHelper(cache, factory);
// Create a downloader for the first representation of the first adaptation set of the first
// period.
DashDownloader dashDownloader = new DashDownloader(Uri.parse(url), Collections.singletonList(new RepresentationKey(0, 0, 0)), constructorHelper);
dashDownloader.download();
上面的代码将许多块 .exo 文件保存到提供的目录中,如何将这些文件转换为单个 mp4 文件?
解决方案
推荐阅读
- flutter - 如何在formdata颤动中发送对象
- swiftui - 使用 repeatForever() 反转动画
- rust - 我怎样才能在这里返回 &str?
- aws-codebuild - 如何复制多行代码构建日志?
- c# - 如何使用 Enumerable.Empty
().AsQueryable() - mysql - 使用图数据库查找图上两个节点之间的所有可能路径
- ios - Swift 检索用户表自定义列
- git - 为什么从特定的 GitHub 存储库合并到本地 Git 存储库会导致本地存储库中未提交的更改?
- mysql - mysql更新json属性和一个查询中的另一列
- java - Jmeter:在 CSV 行中执行计算并在测试中使用计算值