There is any way to connect events to MediaPlayer instance?

This forum is about all development around libVLC.
Zignd
New Cone
New Cone
Posts: 1
Joined: 18 Oct 2013 01:05

There is any way to connect events to MediaPlayer instance?

Postby Zignd » 18 Oct 2013 01:17

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.

mangokm40
Cone that earned his stripes
Cone that earned his stripes
Posts: 130
Joined: 20 May 2010 20:00

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

Postby mangokm40 » 18 Oct 2013 14:08

Can you use the "libvlc_MediaPlayerEndReached" event?


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 11 guests