I haven't yet found an example of anyone who has successfully streamed using the Mozilla plugin. I would really love to give this a try; I'm doing it now through Internet Explorer with the ActiveX plugin (using a Javascript array to help VLC along with parsing the sout parameters). However, this tends to be too much for IE to handle reliably, and I can only imagine things would be much more stable with Firefox.
I've tried using the same Javascript array and tweaking it around the Mozilla plugin code, to no avail. Here's the code for that:
Code: Select all
<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="vlc" events="True">
<param name="Src" value="" />
<param name="ShowDisplay" value="True" />
<param name="Loop" value="False" />
<param name="AutoPlay" value="False" />
</object><br>
Me - <?php echo $myip.' on '.$mynetwork?><br>
<input type=button value="Pause" onClick='document.vlc.stop();'>
<input type=button value="Resume" onClick="go();">
<input type=button value="Toggle Mute" onClick='document.vlc.toggleMute();'>
Code: Select all
<script LANGUAGE="javascript">
function go() {
var options =
new Array('dshow-vdev=',
'dshow-adev=',
'dshow-size=320x240',
'dshow-fps=29.97',
'dshow-config',
'sout=#transcode{vcodec=WMV2,vb=1024,scale=1,acodec=mpga,ab=192,channels=2}:duplicate{dst=display<?php if($direct1 == 2 || $direct2 == 2 || $direct3 == 2){echo ",dst=std{access=udp,mux=ts,url=$vidconfserver:10$myport}";} if($direct1 == 1){ echo ",dst=std{access=udp,mux=ts,url=$slot_1_ip:10$myport}";} if($direct2 == 1){ echo ",dst=std{access=udp,mux=ts,url=$slot_2_ip:10$myport}";} if($direct3 == 1) { echo ",dst=std{access=udp,mux=ts,url=$slot_3_ip:10$myport}";} echo "}"; ?>');
document.vlc.addTarget("dshow://", options, 4+8, -666);};
</script>