Page 1 of 1

How to embed live video stream into http

Posted: 02 Apr 2009 04:45
by tinyang
I have a machine using vlc to serve video across my lan. right now I can use vlc to view the stream from any computer on the lan, but I need to get this working on a webpage, so I'm trying to figure out how to embed the video object into the html. I have a couple questions:

Do I need to use an sdp file for this? My streaming protocol is http.

Or should I be using the virtual streaming file?

Here is a code snippet I have tried so far which is not working:

Code: Select all

<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab" WIDTH="352" HEIGHT="240" > <PARAM NAME="src" VALUE="http://192.168.0.33:8080/stream"> <PARAM NAME="autoplay" VALUE="true" > <EMBED SRC="QTMimeType.pntg" TYPE="image/x-macpaint" PLUGINSPAGE="http://www.apple.com/quicktime/download" QTSRC="http://192.168.254.33:8080/stream" WIDTH="352" HEIGHT="240" AUTOPLAY="true" > </EMBED> </OBJECT>
My codec is mjpeg, and my encapsultation is mp4.

Thanks!!

Re: How to embed live video stream into http

Posted: 02 Apr 2009 18:23
by tinyang
http://wiki.videolan.org/Windows#VLC_Pl ... Mozilla.29

I just found this pouring through the documentation. Is there anything special I need to modify about the examples at the link in order to get a live stream to work? Thanks.

Re: How to embed live video stream into http

Posted: 08 Apr 2009 21:14
by tinyang
I finally got an http embedded vlc plugin player to pull an rtsp stream directly from my ipcamera (see code below), but I'm still having no luck getting it to work through vlc as a streaming server. Specifically, I can pull the stream from the cam to vlc via rtsp/mjpeg, I can stream it out (http/mjpeg/mp4) and successfully access it on vlc players on the lan, but I still can't get an http embedded vlc or QT plugin to receive the stream. So I could really still use some help on this! Any input is welcomed. Thanks. :)

Code: Select all

<embed type="application/x-vlc-plugin" autoplay="yes" loop="no" hidden="no" target="rtsp://username:password@192.168.0.20:7070" /> <br />

Re: How to embed live video stream into http

Posted: 17 Apr 2009 07:14
by isoltechnologies

Code: Select all

<script language="javascript"> var vlc_controls = null; function init() { // load plugin myvlc = new VLCObject("mymovie", "600", "350"); // myvlc.addParam("MRL","http://code.revolunet.com/VLCjs/rambo.mpg"); myvlc.write("vlccontent"); // load controls vlc_controls = new VLCcontrols(myvlc); vlc_controls.onready = function () { vlc_controls.play("http://58.65.151.200:8080"); } } </script>
this is the code for reciving the stream from ip if you solve the problem then do tel me.