I'm in the process of writing an Android app activity that houses a LibVLC MediaPlayer implementation. The MediaPlayer
works fine for the most part, however upon video conclusion, the MediaPlayer
will become unresponsive. From my research, it looks like this could be because the Media is getting unset upon MediaPlayer.Event.EndReached
firing (vajehu).
I've been keeping an eye on MediaPlayer.getPlaybackState()
and can see that the MediaPlayer
object is sitting in the "Ended" state when playback concludes, as expected.
I can go ahead and release my MediaPlayer
and re-create it when MediaPlayer.Event.EndReached
is fired, but am unsure if this is a good course of action. I am hoping to have the MediaPlayer
move back to the beginning of the video and await user input to commence playback again.
(In case it's pertinent - I'm utilising MrMaffen's vlc-android-sdk).