danikula / danikula/AndroidVideoCache

[ExoPlayer] Using MergingDataSource

未关闭
#152 0 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Java
星标
5.5k
派生
1.2k
PR 合并指标
30 天内没有已合并 PR

描述

I'm using AndroidVideoCache v2.7.0 and ExoPlayer v2.4.1, I have no trouble playing & caching a **single** media, however, I can't find a way to cache two medias (audio & video) at the same time.

To get into the details, I'm retrieving the URLs of the audio and video medias separately, I tried to cache both medias at the same time but it would then throw an IllegalStateException when passing the URI to ExoPlayer. Removing the cache functionality, passing both URI to ExoPlayer with MergingMediaSource works well and no errors are thrown.

So i'm starting to guess AndroidVideoCache cannot cache two or more medias at the same time. I dived a bit into the code and noticed the library open a single socket bound to the local address per instance. Even if I tried to create 2 instances of HttpProxyCacheServer, it doesn't work aswell.

贡献指南

这个仓库没有索引到贡献指南

调研方向

首先使用 AndroidVideoCache v2.7.0 和 ExoPlayer v2.4.1 重现双媒体场景,通过 MergingMediaSource 使用单独的音频和视频 URL。检查 HttpProxyCacheServer 以及报告的 IllegalStateException,然后确定是否支持同时缓存;当行为得到修复或其限制得到明确确认时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
android, java
领域
mobile-dev
Issue 类型
缺陷
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。