Play Youtube-Videos via ActiveX

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
MrCake
New Cone
New Cone
Posts: 1
Joined: 20 May 2011 19:32

Play Youtube-Videos via ActiveX

Postby MrCake » 20 May 2011 19:40

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.

hitachioki
New Cone
New Cone
Posts: 1
Joined: 09 Sep 2011 02:22

Re: Play Youtube-Videos via ActiveX

Postby hitachioki » 09 Sep 2011 02:39

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.

jwilsoncheryl
New Cone
New Cone
Posts: 6
Joined: 17 Jan 2012 02:08
VLC version: 1.1.11
Operating System: Windows
Contact:

Re: Play Youtube-Videos via ActiveX

Postby jwilsoncheryl » 18 Jan 2012 03:13

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.

sulli
New Cone
New Cone
Posts: 7
Joined: 17 Jan 2012 18:12
Operating System: Linux

Re: Play Youtube-Videos via ActiveX

Postby sulli » 20 May 2012 11:50

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.


Return to “Web and scripting”

Who is online

Users browsing this forum: Bing [Bot] and 12 guests