Problem with LibVLC events to detect end of playlist M3U

This forum is about all development around libVLC.
SaiyanRiku
Blank Cone
Blank Cone
Posts: 14
Joined: 08 Nov 2008 17:10
Location: Besançon, France

Problem with LibVLC events to detect end of playlist M3U

Postby SaiyanRiku » 14 Jun 2009 14:13

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.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

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

Postby Jean-Baptiste Kempf » 14 Jun 2009 18:59

Well, can you try with VLC 1.0.0 ?

btw, what is the aim of developping such an application, (except fun)?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

SaiyanRiku
Blank Cone
Blank Cone
Posts: 14
Joined: 08 Nov 2008 17:10
Location: Besançon, France

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

Postby SaiyanRiku » 15 Jun 2009 18:49

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 !


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 4 guests