Page 1 of 1

setting media to a playlist file

Posted: 02 Jul 2010 22:44
by jolleyolleyman
I'm trying to open playlist (.pls) files but nothing seems to happen
I can open video and music files with no problem

example
media = libvlc_media_new_path(vlcInstance,"C:\\classicalmusic.pls");


is there a different routine used for opening pls files or is there something else I need to do?

Re: setting media to a playlist file

Posted: 03 Jul 2010 01:49
by Jean-Baptiste Kempf
what are the logs?

Re: setting media to a playlist file

Posted: 05 Jul 2010 14:48
by XilasZ
As far as i know, libvlc_media_new_* is for a single media file or url, it can't handle playlist files.

Re: setting media to a playlist file

Posted: 07 Jul 2010 10:43
by ivoire
It handle it but when the media is played vlc will parse the playlist and create subitem to the media. Look for the subitems and AFAIK you will find the medias you are looking for.

Re: setting media to a playlist file

Posted: 08 Jul 2010 17:33
by XilasZ
Does it play the subitems automatically ?

Re: setting media to a playlist file

Posted: 08 Jul 2010 19:55
by RĂ©mi Denis-Courmont
media_list_player does that. Not the plain media_player

Re: setting media to a playlist file

Posted: 09 Jul 2010 14:38
by XilasZ
Ok, so i was half wrong and half right, as i was thinking about media_player only.