Play Youtube videos in JVLC
Posted: 15 Dec 2008 11:18
Hello,
I noticed that, when using VLC through it's normal interface, I can select 'Media' 'Open Network...' and pass in a youtube url to have the video play automatically in VLC.
I'm trying to get the same mechanism to work in my application which communicates to libvlc through JVLC. I was hoping it would be as simple as creating a MediaDescriptor with a url instead of a file name, but unfortunately this hasn't worked (as well as several variations of this). Would anyone happen to know how I could get a network stream such as youtube to work in JVLC? Is there a particular command line parameter that must be passed to vlc in order for this to work, or should I be using a different object other than MediaDescriptor or Playlist?
Thanks,
Marc
I noticed that, when using VLC through it's normal interface, I can select 'Media' 'Open Network...' and pass in a youtube url to have the video play automatically in VLC.
I'm trying to get the same mechanism to work in my application which communicates to libvlc through JVLC. I was hoping it would be as simple as creating a MediaDescriptor with a url instead of a file name, but unfortunately this hasn't worked (as well as several variations of this). Would anyone happen to know how I could get a network stream such as youtube to work in JVLC? Is there a particular command line parameter that must be passed to vlc in order for this to work, or should I be using a different object other than MediaDescriptor or Playlist?
Thanks,
Marc