Android Question How to play "live" video file with ExoPlayer

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
 

Pendrush

Well-Known Member
Licensed User
Longtime User
.TS is part of stream (10-20 sec long) probably of the Wowza server.
You need to start stream with play list file, usual name is /playlist.m3u8
 
Upvote 0
Top