Hi there,
I haven't found the perfect solution yet. But you could start trying with this.
Start vlc with (one line)
Code: Select all
vlc -Idummy v4l:/dev/video0:size=160x120 --no-audio --sout '#transcode{vcodec=DIV3,vb=128,scale=1}:std{access=mmsh,mux=asfh,dst=:8080/stream.asf}'
Where /dev/video0 is the video source (change it to your source).
In your webbpage add this:
Code: Select all
<OBJECT ID="MediaPlayer" WIDTH=320 HEIGHT=240
CLASSID="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..."
TYPE="application/x-oleobject"
CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">
<PARAM name="autoStart" value="True">
<PARAM name='showControls' value="False">
<PARAM name="filename" value="mms://url-to-vlc-server:8080/stream.asf">
<EMBED TYPE="application/x-mplayer2"
SRC="mmsh://url-to-vlc-server:8080/stream.asf"
NAME="MediaPlayer"
WIDTH=320
HEIGHT=240>
</EMBED>
</OBJECT>
Change url-to-vlc-server to the actual ip or fqdn.
Once you see mmsh://... and once mms://...
I tried to have it both the same, but either Win (IE) clients play the stream or Linux resp. Mozilla clients play it. This is a work-a-round. Maybe your users have to install vlc-plugin for mozilla.
Hope it helps! If you find a better solution, please let me know.
Simon
Ps: Here is what it can look like:
http://www.ist-schlau.de/