Page 1 of 1

There is any way to connect events to MediaPlayer instance?

Posted: 18 Oct 2013 01:17
by Zignd
I'd like to add an event to a mediaplayer instance to get some sort of return when the video that have been played have finished its execution/playing. I'm using the Python binding, but I think that there is no need of an answer using it, it can be in the native libVLC language.

To specify what I'm trying to say with mediaplayer instance look at this code snippet bellow:

Code: Select all

self.instance = vlc.Instance() self.mediaplayer = self.instance.media_player_new()
Thanks in advance.

Re: There is any way to connect events to MediaPlayer instan

Posted: 18 Oct 2013 14:08
by mangokm40
Can you use the "libvlc_MediaPlayerEndReached" event?