PlayList

This forum is about all development around libVLC.
godotvt
New Cone
New Cone
Posts: 9
Joined: 03 Mar 2009 17:19

PlayList

Postby godotvt » 25 Mar 2009 11:50

I want to create e and play a playlist with jvlc library.I read the reference and i saw tha the class was deprecated;so i try to use :

MediaPlayer
MediaDescriptor
MediaPlayerListener
MediaList
MediaListPlayer

This is may code

Code: Select all

public class VlcDemo { public static void main(String[] args) throws InterruptedException { String[] param = new String[] { "-vvv", //"--plugin-path=.\\3rd_party\\vlc-0.9.0-test3-20080727-0004\\plugins", "--plugin-path=.\\vlc\\vlc-0.9.8a\\plugins", "--no-plugins-cache" }; //NativeLibrary.addSearchPath("libvlc", "C:\\Documents and Settings\\gianpaolot\\Desktop\\vlcinstaller\\vlc\\vlc-0.9.8a"); NativeLibrary.addSearchPath("libvlc", ".\\vlc\\vlc-0.9.8a"); JVLC jvlc = new JVLC(param); MediaPlayer mp; MediaDescriptor[] ds =new MediaDescriptor[2]; MediaPlayerListener mpl; MediaList ml; MediaListPlayer mlp; ds[1] = new MediaDescriptor(jvlc, "c:\\caressa.mp3"); ds[0] =new MediaDescriptor(jvlc,"c:\\Gattino.mp3"); ml =new MediaList(jvlc); for (int i = 0; i < ds.length; i++) { ml.addMedia(ds[i]); } MediaListPlayer listPlayer=new MediaListPlayer(jvlc); listPlayer.setMediaList(ml); listPlayer.play(); Thread.sleep(1000000); // Sleep for 10 seconds to let the movie play for a bit. } }
The problem is :

If i use the method MediaListPlayer.play play only the first song! Why don't play all song that i set in MediaList?
can somebody help me ?
Thank you Gianpaolo

erwan10
Developer
Developer
Posts: 415
Joined: 02 Nov 2008 23:16

Re: PlayList

Postby erwan10 » 25 Mar 2009 13:55

Media_list_player never worked. (an unfinished work!)

Actually, it would be nice to know what the status and plans are for libvlc and family (JVLC, ... ). (Help, vlc team !)

On one side, everything related to playlist is said deprecated and on the other side, what is meant as a replacement seems to be left unmaintained.

As for media_list_player, if that can help, I can send an updated patch for review. (already sent three months ago, but to no avail)

Erwan10

godotvt
New Cone
New Cone
Posts: 9
Joined: 03 Mar 2009 17:19

Re: PlayList

Postby godotvt » 27 Mar 2009 09:33

You think tha it possible to do a streaming playList with the class PLAYLIST?


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 7 guests