I am making an tv app and the app is playing HLS media streaming using exoplayer.
when app starts it's playing default streaming link. i want to make functionality like if, i click different button it will play different streaming connected link with the button.
I am using java.
I tried button click listener event first release() the exoplayer then set the media player again
then add media item prepare the exoplayer and paly the exoplayer. its not working
Exoplayer stop video when screen off,
I need to playing video when screen off. Is this possible in android exoplayer?
My requirement is to stream video using HTML5 player in android.
I referred this link to stream the -> WebView and HTML5
.
It's streaming properly but there is no option to play, pause and seek the video position.
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)
}
I have tried for detecting the HLS video is Live or VOD. We can able to differentiate a live stream from a VOD by getting the player's duration after it is prepared. The live streams will return UNKNOWN_TIME, where as VOD streams will return the fixed known duration of the stream which is currently playing.
it should just take video server url. should buffer and start playing video.
are there any libraries available for playing a video with buffering ?
How to implement custom video player with media controls similar to youtube?