Description
Searched documentation and issues
-This repository
-Web (medium, stackoverflow, etc.)
Question
I am developing an app, in which you can play songs from a website. Right now, parsing the url for the tracks takes some time (although I do cache) and doesn't always work flawlessly, but if it has been parsed I add it do the concatinating Media Source. The Problem lays within the playlist mechanichs. If I want to play a long playlist, I need to load them all at once into my concatenating media source. But most of the tracks in that long playlist wont get played. I thought that I could try implementing the part where I parse the songs url from the web, after the song has been queued rather an in advance. So that it will only get parsed when ExoPlayer starts buffering the actual Track.
I tried implementing MediaSource while just passing the method calls to an underlying ExtractorMediasource, but to be honest, I didn't know where to start, and what the methods ment, even after reading the docs.
TL;DR:
I'd like to implement my res hungry uri parsing for an ExtractorMediaSource after queueing to an ConcatinatingMediaSource (in this case sometimes rly long playlist). So that it will only get parsed when the user really wants to hear that song. If someone knew where I could start looking or if there was a simpler way to implement this than creating my own MediaSource implementation, would help me A LOT!
Thx in advance. I hope my english is at least a bit understandable.