Page 1 of 1

vlc pbject webpage

Posted: 30 Jun 2006 10:26
by queest
Hi,
I have include vlc in my Homepage. With Firefox and Netscape it works fine. And in the IE I have include it like this:
<object classid="clsid:E23FE9C6-778E-49D4-B537-38FCDE4887D8"
codebase="http://downloads.videolan.org/pub/video ... /axvlc.cab"
width="320" height="240" id="vlc" events="True">
<param name="Src" value="rtsp://localhost:2133" />
<param name="ShowDisplay" value="True" />
<param name="Loop" value="False" />
<param name="AutoPlay" value="False" />
</object>

it also works. The only problem when I click on the player than the vlc player stops displaying or playing.

Posted: 30 Jun 2006 13:31
by karlar
It just stop displaying - i think its go to fullscreen but you cant see it before that you call a fullscreen cmd.

I dont know how to fix it.
But perhaps we can catch the event onclick before vlc and use it.
Or place a layer over the object so users cant click on it.

Let me know if you find something

Posted: 30 Jun 2006 14:02
by queest
Hi - i have a new problem, wenn I try to load this object dynamically with javascript and innerHTML it won't work. --please stay polite--. Is there any solution to give the <object> different sources in one site?

Posted: 30 Jun 2006 15:28
by queest
What the hell is wrong here?
In the Internet Explorer with axvlc.cab
JavaScript:
onclick I call this functions:

document.vlc.stop();
var options=Array(":input");
document.vlc.addTarget(streamURL,options ,4+8, -666);
document.vlc.play();

html:

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

Please Help

Posted: 01 Jul 2006 21:20
by karlar
try :

Code: Select all

<html> <head> <title> StreamTV </title> </head> <body> <script> function Play() { var options= new Array(" "); var targetURL = "rtsp://yoururl..."; document.vlc.addTarget(targetURL, options, 4+8, -666); } </script> <OBJECT classid="clsid:E23FE9C6-778E-49D4-B537-38FCDE4887D8" codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab" width="640" height="480" id="vlc" events="True" > </OBJECT> <input type="button" value="Play" onClick="Play();" ID="Button1" NAME="Button1"> </body> </html>