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.