vlc 0.8.6 ActiveX problem with IE
Posted: 18 Jan 2007 15:52
Hi everybody, thanks all the developpers for the great work made for VLC, this is really a wonderful software!
Now my problem: I'm trying to play some videos (url : mms:\\azerty.wmv for example) on a website.
the code looks like this in the body tag:
In the head tag, i have :
It works perfectly with Firefox 2.0.0.1 but I try with IE 6, and I only have the cone image, the video doesn't start.
Can someone help me with that? thanks.
Now my problem: I'm trying to play some videos (url : mms:\\azerty.wmv for example) on a website.
the code looks like this in the body tag:
Code: Select all
<object id="vlcAx" class="vlcAx"height="260" width="320" classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921">
<param name="AutoPlay" value="True" />
<param name="AutoStart" value="True" />
<object id="vlc" class="vlc" height="260" width="320" type="application/x-vlc-plugin">
<param name="AutoStart" value="True" />
<param name="AutoPlay" value="True" />
</object>
</object>
Code: Select all
sPathVideo = "mms://sIdVideo + "_250kb.wmv";
if(navigator.userAgent.toLowerCase().indexOf("msie") != -1)
{
vlc.style.visibility = "hidden";
document.getElementById("vlcAx").add_item(sPathVideo);
document.getElementById("vlcAx").set_volume(100);
document.getElementById("vlcAx").play();
}
else if(navigator.userAgent.toLowerCase().indexOf("gecko") != -1)
{
document.getElementById("vlc").add_item(sPathVideo);
document.getElementById("vlc").set_volume(100);
document.getElementById("vlc").play();
}
Can someone help me with that? thanks.