I did some more testing, and I now have some code that works in internet explorer with the ActiveX plug-in:
Code: Select all
<html>
<head>
</head>
<input type=button id="start" value=" Play " onClick='StartTV()'>
<object classid="clsid:E23FE9C6-778E-49D4-B537-38FCDE4887D8" codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab"
width="400" height="300" id="vlc" events="True">
<param name="Src" value="" />
<param name="ShowDisplay" value="True" />
<param name="Loop" value="False" />
<param name="AutoPlay" value="False" />
</object>
<script>
function StartTV()
{
var options = new Array(":dshow-vdev=Hauppauge WinTV PVR PCI II Capture");
document.vlc.addTarget("dshow://", options, 4+8, -666);
};
</script>
</body>
</html>
The problem is that the ActiveX plug in isn't mentioned in the documentation on the website. Does anybody have a link to a little bit of documentation?
I would really like to know why I need to add the ", 4+8, -666" in the addTarget tag. I doesn't work without is, But I don't have a clue about what it does.
But back to my Problem: this doesn't work in firefox!
The equivalent in the code for the mozilla plug-in:
Code: Select all
<html>
<head>
</head>
<input type=button id="start" value=" Play " onClick='StartTV()'>
<embed type="application/x-vlc-plugin"
name="vlc" autoplay="no" loop="no" width="400" height="300"
/>
</object>
<script>
<!--
function StartTV()
{
var options = new Array(":dshow-vdev=Hauppauge WinTV PVR PCI II Capture");
document.vlc.add_item("dshow://", options, 4+8, -666);
document.vlc.play();
};
//-->
</script>
</body>
</html>
But this does not work! the "add_item" method doesn't do anything with the added options array, so it just starts the first directshow device (a webcam in on my configuration)
does anybody have a solution?