Page 1 of 1

Play Youtube-Videos via ActiveX

Posted: 20 May 2011 19:40
by MrCake
Hi.
I like to play Youtube-Videos with the VLC-ActiveX-Plugin in my program. Unfortunally it doesn't work. I can play the "normal" Videos with .addTarget or .playlist.add.
But when i choose the url of a youtubevideo it doesnt work.
vlc.addTarget("C:\myvideo.avi") <-- works
vlc.addTarget("http://www.youtube.com/watch?v=6Ejvk6Xv ... re=related") <-- does not work

Google says that it should work, but it doesnt (i think i've mentioned that).
Any Ideas?
Thank you for reading and trying to understand my horrible english.

Re: Play Youtube-Videos via ActiveX

Posted: 09 Sep 2011 02:39
by hitachioki
I am also having a lot of trouble with this. There is a .lua file in VLC/lua/playlist/ called youtube.lua that seems to construct the url that VLC actualy usees to play the stream. If i open a youtube stream in vlc, and go to the media information, and take the "location" string and use addtarget(location, ":http-caching=1200", VLCPlaylistmode.VLCPlayListReplaceAndGo, 0), it works.

The problem is I cant get that url from the html i get from youtube at http://www.youtube.com/watch?v=jqxENMKaeCU. I followed along through the .lua file and found some strings in the html that are very close, but not the same. The ip parameter, the ratebypass parameter, and the signature parameter are all different.

I am using VLCPlugin in a wpf application, does anyone know how to play youtube files through the addtarget method?
Thanks for any help...I am stuck.

Re: Play Youtube-Videos via ActiveX

Posted: 18 Jan 2012 03:13
by jwilsoncheryl
i've never use this software to play youtube video. I have tried what you said, and i got the same experience as you. Anybody help us?
thank you in advance.

Re: Play Youtube-Videos via ActiveX

Posted: 20 May 2012 11:50
by sulli
The YouTube videos are fed through Google's YouTube API which is written in AS2 and has to go through the youtubebridge.swf file in order for it work in the 3D Wall Pro, which is AS3. The youtube.js JavaScript file is also required to facilitate this communication.

It is therefore not possible to play YouTube videos in a stand alone Flash player as the YouTube videos can only be played when viewed through an HTML file.