I'm developing a video application when an HLS video starts as Live but after the .m3u8 playlist has completed loading we want to move back to seeing VOD HLS instead of Live.
How can I tell if HLS video is in Live mode and changed to VOD ?
You can try mExoPlayer.isCurrentWindowDynamic() link
so in the code you will use it like this:
if (mExoPlayer.isCurrentWindowDynamic()) {
// treat me as live stream
} else {
// treat me as VOD (Video On Demand)
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With