You are not logged in.

#1 2009-12-02 15:54:48

murfMan
Member
Registered: 2009-10-27
Posts: 161

embed a vlc wmv stream in html document

i have successfully created a wmv webcam stream with vlc located at http://localhost:8080/stream.wmv by using the following command:

  cvlc v4l2:// :v4l2-vdev="/dev/video0" --sout '#transcode{vcodec=wmv2,vb=800,scale=1}:duplicate{dst=std{access    =http{mime=video/x-ms-wmv},mux=asf,dst=:8080/stream.wmv}}' --no-sout-audio &

i was wondering if anyone knew of a way to embed this stream into a html webpage via windows media plugin.

i have been using this code but it doesn't seem to work

 6 <object id="MediaPlayer" classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" width="480" height="360" standb    y="Loading Windows Media Player components…" type="application/x-oleobject" codebase="http://activex.microsof    t.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">
  7 <param name="FileName" value="http://192.168.1.102:8080/stream.wmv">
  8 <param name="AutoStart" value="true">
  9 <param name="ShowControls" value="true">
 10 <param name="BufferingTime" value="2">
 11 <param name="ShowStatusBar" value="true">
 12 <param name="AutoSize" value="true">
 13 <param name="InvokeURLs" value="false">
 14 <param name="AnimationatStart" value="1">
 15 <param name="TransparentatStart" value="1">
 16 <param name="Loop" value="0">
 17 
 18 <embed type="application/x-mplayer2" src="http://192.168.1.102:8080/stream.wmv" name="MediaPlayer" autostart=    "1" showstatusbar="1" showdisplay="1" showcontrols="1" loop="0" videoborder3d="0" pluginspage="http://www.mic    rosoft.com/Windows/MediaPlayer/" width="480" height="360"></embed>
 19 </object>

i am able to see the plugin when i pull up the html file...but it says "connecting to media" and then it says "ready" when i push play nothing happens. hmm


also i can see the stream if i open it as a network stream in vlc.  so i know the stream is there.

Last edited by murfMan (2009-12-02 16:06:15)

Offline

Board footer

Powered by FluxBB