Webcam Corp.
Search Our Site with Google™
  Search   
  




  

How to embed VLC player in a Web page for video streaming

To embed VLC player in your web page, copy the following HTML code and change the IP address and video port. For example, if the IP address of NetCamCenter software is 70.1.1.1 and video port is 81. Then enter http://70.1.1.1:81

The CGI command for getting H264/MPEG4/MJPEG video streams from NetCamCenter is

For NetCamCenter 3.05 and above:


On CamCenter, Setup, Server, make sure you enabled RTSP server.

On each camera, for mobile stream (2nd stream), on video window, Setup/Streams, Enable mobile RTSP stream, you can also adjust the mobile stream video width based on your devices' processing power. For primary stream (stream 1), you only need to enable RTSP server on CamCenter. However, primary stream is only available when using with IP cameras with H264 codec.

E.g. To get streaming video from NetCamCenter camera #16, stream 2, the URL is

rtsp://host_ip:rts_port_number/live_16_2

<OBJECT ID="OBJECT1" width="640" height="480"
CLASSID="CLSID:9BE31822-FDAD-461B-AD51-BE1D1C159921" codebase="http://download.videolan.org/pub/videolan/vlc/last/win32/axvlc.cab">
<PARAM name="Target" value="rtsp://70.1.1.1:7554/live_16_2"/>
<PARAM name="MRL" value="rtsp://70.1.1.1:7554/live_16_2"/>
<PARAM NAME="AutoPlay" VALUE="true"/>
</OBJECT>


For NetCamCenter 3.04:


http://host_ip:port_number/cgi-bin/video.cgi?cam=channel&stream=1

E.g. To get streaming video from NetCamCenter camera #16, the URL is

http://70.1.1.1:81/cgi-bin/video.cgi?cam=16&stream=1

<OBJECT ID="OBJECT1" width="640" height="480"
CLASSID="CLSID:9BE31822-FDAD-461B-AD51-BE1D1C159921" codebase="http://download.videolan.org/pub/videolan/vlc/last/win32/axvlc.cab">
<PARAM name="Target" value="http://70.1.1.1:81/cgi-bin/video.cgi?cam=16&stream=1"/>
<PARAM name="MRL" value="http://70.1.1.1:81/cgi-bin/video.cgi?cam=16&stream=1"/>
<PARAM NAME="AutoPlay" VALUE="true"/>
</OBJECT>



All rights reserved.
All trademarks are owned by respective company.