danikula / danikula/AndroidVideoCache

[ExoPlayer] Using MergingDataSource

Đang mở
#152 0 bình luận 2 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Java
Star
5.5k
Fork
1.2k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.