Page 1 of 1

ActiveX, iexplore and events

Posted: 11 Jan 2006 20:44
by thomas1234
Hi, I am building a html-page for internet explorer that embeds the videolan plugin:


<html>
<SCRIPT LANGUAGE=javascript FOR="vlc" event="Error">
window.location.reload();
</SCRIPT>

<body>

<object classid="clsid:E23FE9C6-778E-49D4-B537-38FCDE4887D8" codebase="http://downloads.videolan.org/pub/video ... /axvlc.cab" width="100%" height="100%" id="vlc" events="True">
<param name="Src" value="dvdsimple://D:"/>
<param name="ShowDisplay" value="False" />
<param name="Loop" value="True" />
<param name="AutoPlay" value="True" />
</object>

</body>
</html>

..it doesnt work... why??
What kind of events does the videolan plugin throw?


thanks for help

Posted: 19 Jul 2006 14:59
by Jack L
Here is some IE code that I am using to display 2 video streams and switch audio from one to another

Code: Select all

<HTML> <head> <title>Playback</title> <head> <SCRIPT LANGUAGE='javascript'> var IPAddress1="udp://@" + "239.3.1.1" + ":1234"; var IPAddress2="udp://@" + "239.3.1.2" + ":1234"; function play() { document.v1.playlistClear(); document.v2.playlistClear(); //Parameter 8 below replaces the playlist and starts playing document.v1.addTarget(IPAddress1, null, 8, 0); document.v2.addTarget(IPAddress2, null, 8, 0); setTimeout('Listen2V1()', 500); } function Closeobj() { document.v1.stop(); document.v2.stop(); } function Listen2V1() { document.v1.volume = "100"; document.v2.volume = "0"; } function Listen2V2() { document.v2.volume = "100"; document.v1.volume = "0"; } </SCRIPT> </HEAD> <BODY marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" onload="play()" onunload="Closeobj()" BGCOLOR="AAAAAA" > <OBJECT classid="clsid:E23FE9C6-778E-49D4-B537-38FCDE4887D8" codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab" width=320 height=240 id="v1" events="True"> <param name="ShowDisplay" value="True"/> <param name="AutoPlay" value="True"/> <param name="Enabled" value="False" /> </OBJECT> <BR> <OBJECT classid="clsid:E23FE9C6-778E-49D4-B537-38FCDE4887D8" codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab" width="320" height="240" id="v2" events="True"> <param name="ShowDisplay" value="True"/> <param name="AutoPlay" value="True"/> <param name="Enabled" value="True" /> </OBJECT> <CENTER> <form name="Formular" action=""> <font face="Tahoma" color="002222" size="+2"><B>Audio: </B></font> <font face="Tahoma" color="005555" size="+1"> <input type="radio" name="AudioSource" value="AudioMain" checked onClick="Listen2V1()">Playback C <input type="radio" name="AudioSource" value="AudioBackup" onClick="Listen2V2()"> <font face="Tahoma" color="550055" size="+1">Playback D</font> </form> </CENTER> </BODY> </HTML>
Hope this helps