[vlc-devel] How to get JVLC to play youtube...

Tony Anecito adanecito at yahoo.com
Tue Nov 3 16:27:53 CET 2009


Hi Rafael & VLC Team,

I was able to verify that I can get JVLC to play the youtube videos by taking the location (VLC GUI label) url in the media information dialog and inputting that for the mediaplayer mediadescriptor object creation. I had to do this same operation for the mov files that are played via http. This url is what works with mediaplayer object and not the one the user of the vlc gui pastes into the open media network tab address textbox when wanting to open a network stream.

That said and hopefully understood the wider scope question for all bindings for vlc is now what function should be called against the vlc code that would take the youtube url and return the location url that works with the mediadescriptor object? For youtube the exact url that the location textbox displays changes dynamically over time. It is as if the standard youtube url points to another url that dynamically changes over time kind of like a DNS entry points to a server ip that can change but the DNS entry abstracts that away so the user does not need to know a server IP. This means for usability all bindings needs to call a vlc function that prepossesses the url of the youtube url to obtain the current url that works with the media object.

Hopefully the other bindings developers and someone on the vlc team understands what I tried to explain and can come up with an existing function we can use to take a url that we enter like a user of the gui and returns the derived url the mediadescriptor object needs.

Many Thanks,
-Tony 

--- On Mon, 11/2/09, Rafaël Carré <rafael.carre at gmail.com> wrote:

> From: Rafaël Carré <rafael.carre at gmail.com>
> Subject: Re: [vlc-devel] How to get JVLC to play youtube...
> To: vlc-devel at videolan.org
> Date: Monday, November 2, 2009, 9:08 AM
> On Mon, 2 Nov 2009 06:44:31 -0800
> (PST)
> Tony Anecito <adanecito at yahoo.com>
> wrote:
> 
> > Hi Rafael,
> > 
> > Thanks for the response. All I am doing is taking the
> url that works
> > in vlc.exe and using it for the example programs for
> jvlc. I suspect
> > that there are some command line settings that I need
> to pass to the
> > jvlc object that creates an instance of vlclib.
> > 
> > The url I used for both the playlist and mediaplayer
> examples is:
> > http://www.youtube.com/watch?v=8ETDE0VGJY4
> > 
> > I tried the command line options you listed for the
> jvlc example for
> > mediaplayer (the recommended object for jvlc) and go
> the following
> > output for the -vvv option.
> > 
> > It looks as if the wrong demux is selected. It uses
> lua and for the
> > vlc player it finds the avcodec according to the
> message window.
> 
> lua demux creates a child input with the correct url
> (pointing to
> the flv file, not to the html page)
> 
> Looks like jvlc doesn't switch to the new input, you should
> ask the jvlc
> maintainer (or wait for him to pop up on this thread)
> 
> -- 
> Rafaël Carré
> 
> -----Inline Attachment Follows-----
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
> 


      



More information about the vlc-devel mailing list