danikula / danikula/AndroidVideoCache

[ExoPlayer] Using MergingDataSource

Aperta
#152 0 commenti 2 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Java
Stelle
5.5k
Fork
1.2k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Inizia riproducendo il caso con due media con AndroidVideoCache v2.7.0 ed ExoPlayer v2.4.1, usando URL separate per audio e video con MergingMediaSource. Esamina HttpProxyCacheServer e la IllegalStateException segnalata, quindi determina se il caching simultaneo è supportato; il lavoro è completato quando il comportamento è stato corretto oppure la sua limitazione è stata stabilita chiaramente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
android, java
Ambito
mobile-dev
Tipo di issue
Bug
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.