Streaming With The Mozilla Plugin

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
Scott JHU-ECE
Blank Cone
Blank Cone
Posts: 24
Joined: 17 Dec 2005 18:02

Streaming With The Mozilla Plugin

Postby Scott JHU-ECE » 25 Jan 2006 14:31

Just to buck the trend, thought I'd post something not regarding ActiveX ;-)

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>
Granted, a little convoluted with all the dynamic PHP elements in it, but you get the gist of it. Any thoughts on how to do the same with the Mozilla plugin?

Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 8 guests