Page 1 of 1

Problem with LibVLC events to detect end of playlist M3U

Posted: 14 Jun 2009 14:13
by SaiyanRiku
Hello,

I'm developping a GTK wrapper for libvlc for another application. (http://code.google.com/p/libvlc-gtk/)

I have a problem to load playlist (M3U file). When I load one, I detect with event when a subitem is added in the media_list of the main media and I copy these subitem in a queue. When the playlist is finished to be analysed I play the first media in the queue and after the second...

I use the event libvlc_MediaPlayerEndReached to detect the end of the playlist loading, this works but sometimes it doesn't happens (randomly). So i'm wonder if libvlc has a bug, or if this event isn't efficient to detect the end of the playlist loading. In this case, how to detect it?

And I have another question, when the libvlc_MediaPlayerStopped event happen? Because the function to stop the media player send just a libvlc_MediaPlayerEndReached event.

I'm using libvlc 0.9.9a on Ubuntu.

Thank you for you're help.

Re: Problem with LibVLC events to detect end of playlist M3U

Posted: 14 Jun 2009 18:59
by Jean-Baptiste Kempf
Well, can you try with VLC 1.0.0 ?

btw, what is the aim of developping such an application, (except fun)?

Re: Problem with LibVLC events to detect end of playlist M3U

Posted: 15 Jun 2009 18:49
by SaiyanRiku
Ok, it's seems to work better with VLC 1.0.0 !

In fact, the main goal is to create a widget usable in another application that I'm developping (http://code.google.com/p/freetuxtv/). But it also allows me to have a layer which support compatibility with VLC 0.8.6 and VLC 0.9.x because lot of people still use VLC 0.8.6 with Ubuntu Hardy.

So I decided to make it separate to be reused by someone who could need this.

Maybe there is a part of fun ^^ !

Thank you !