setting media to a playlist file

This forum is about all development around libVLC.
jolleyolleyman
New Cone
New Cone
Posts: 5
Joined: 24 May 2010 22:27

setting media to a playlist file

Postby jolleyolleyman » 02 Jul 2010 22:44

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?

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: setting media to a playlist file

Postby Jean-Baptiste Kempf » 03 Jul 2010 01:49

what are the logs?
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.

XilasZ
Developer
Developer
Posts: 189
Joined: 16 Jun 2009 20:35

Re: setting media to a playlist file

Postby XilasZ » 05 Jul 2010 14:48

As far as i know, libvlc_media_new_* is for a single media file or url, it can't handle playlist files.

ivoire
Cone that earned his stripes
Cone that earned his stripes
Posts: 413
Joined: 20 Aug 2008 11:29
VLC version: trunk
Operating System: linux (debian sid)
Contact:

Re: setting media to a playlist file

Postby ivoire » 07 Jul 2010 10:43

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.

XilasZ
Developer
Developer
Posts: 189
Joined: 16 Jun 2009 20:35

Re: setting media to a playlist file

Postby XilasZ » 08 Jul 2010 17:33

Does it play the subitems automatically ?

Rémi Denis-Courmont
Developer
Developer
Posts: 15228
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: setting media to a playlist file

Postby Rémi Denis-Courmont » 08 Jul 2010 19:55

media_list_player does that. Not the plain media_player
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

XilasZ
Developer
Developer
Posts: 189
Joined: 16 Jun 2009 20:35

Re: setting media to a playlist file

Postby XilasZ » 09 Jul 2010 14:38

Ok, so i was half wrong and half right, as i was thinking about media_player only.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 10 guests