I have a vlc video player embedded in a Java client application. I use this to play videos streamed across the network.
I want to detect on the client when the video has finished playing, i.e. when the end of the network stream has been reached.
I use the libvlc callback mechanism for all of the relevant event types, libvlc_MediaPlayerPlaying, libvlc_MediaPlayerStopped, libvlc_MediaPlayerEndReached and so on.
As expected, I get libvlc_MediaPlayerPlaying on both client and server when the video starts.
I also get libvlc_MediaPlayerEndReached on the server at the end of the video file.
My problem is that on the client, I do not get any event at all when the end of the video file is reached. I was hoping I'd get libvlc_MediaPlayerEndReached at the client. Instead, I am stuck on a black screen on my client, not knowing that the video has stopped.
Is there anything I can do so the client can know the end of the stream is reached?
I'm usnig libvlc 0.9.8 on Ubuntu.