HarryAndroid
New Member
Hi there!
I want to play media files timeshifted, which are currently beeing recorded. The files are accessible via http, e.g. like "http://someserver/media/12345.ts". In the ExoPlayer timeline api docs, the exact case is documented: "Live stream with indefinite availability" (https://exoplayer.dev/doc/reference/com/google/android/exoplayer2/Timeline.html). However, I have no idea how to setup exoplayer correctly. If I just throw the url onto a MedaItem, I can play only that part of the file, which is known when the player starts playing. Anyhting which is recorded afterwards will not be played. Obviously, the period has a fixed duration. The player should be set up with an unkown period duration. How can this be done? Or must the server provide the stream in a different way?
Regards
Harray
I want to play media files timeshifted, which are currently beeing recorded. The files are accessible via http, e.g. like "http://someserver/media/12345.ts". In the ExoPlayer timeline api docs, the exact case is documented: "Live stream with indefinite availability" (https://exoplayer.dev/doc/reference/com/google/android/exoplayer2/Timeline.html). However, I have no idea how to setup exoplayer correctly. If I just throw the url onto a MedaItem, I can play only that part of the file, which is known when the player starts playing. Anyhting which is recorded afterwards will not be played. Obviously, the period has a fixed duration. The player should be set up with an unkown period duration. How can this be done? Or must the server provide the stream in a different way?
Regards
Harray