PDA

View Full Version : dynamic embeding vlc player.



riptide
08-17-2011, 02:30 AM
I have been able to load videos into a webpage with JavaScript but the
plugin breaks. I don't know if it's the javascript or the VLC player.
oh yeah I used the VLC plugin for opera and firefox.

I'm using .innerHTML but I'm going to making an object and setting the
parameters like this:

var video=document.getElementById('wma');
var Vobject = video.createelement('object')
Vobject.setAttribute('id','video1');
Vobject.setAttribute('width','500');
Vobject.setAttribute('height','450');
Vobject.setAttribute('clssid','CLSID:9BE31822-FDAD-461B-AD51-BE1D1C159921');
Vobject.setAttribute('codebase','http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab');
Vobject.setAttribute('events','true');
var pam = document.createElement("param");
pam.setAttribute('scr',"'+vrr[0]+'" );
pam.setAttribute('AutoPlay',"true" );
Vobject.appendChild(pam);


What do you think is the main cause?

riptide
08-17-2011, 04:49 AM
I just found out the mozilla plug-in for VLC is buggy.