Haikang camera video real-time monitoring and preview, there are two ways:
1, VLC plug-in preview video.
2. Use Haikang to preview the video with the ActiveX control itself.
One, VLC plug-in preview video
VLC provides Internet Explorer ActiveX Plug-ins and Firefox or Chrome plug-ins, basically covering all browsers, so there are complex decoding requirements in the case of VLC to solve the Web playback video.
Haikang device gets video RTSP protocol format
Main stream
Rtsp://admin:12345@192.168.1.100:554/h264/ch1/main/av_stream
Rtsp://admin:12345@192.168.1.100:554/mpeg-4/ch1/main/av_stream
Child code Flow:
Rtsp://admin:12345@192.168.1.100:554/mpeg4/ch1/sub/av_stream
Rtsp://admin:12345@192.168.1.100:554/h264/ch1/sub/av_stream
Second, use the Haikang active control to preview the video.
2.1. Choose the Hai Kang Network Camera and deploy, assuming the access address is: http://192.168.1.100:80.
2.2. Accessing the Http://192.168.1.100:80,IE browser prompts you to install an ActiveX control and store the ActiveX control locally (IPCameraActiveX.cab.cab).
2.3. Unpack Ipcameraactivex.cab, open Ipcameraactivex.inf file with Notepad, view Code snippet:
[Netvideoactivex23.ocx]
File-win32-x86=thiscab
Registerserver=yes
clsid={cafcf48d-8e34-4490-8154-026191d73924}
destdir= 11
fileversion=2,3,21,1
2.4. Record the "CLSID" above.
2.5. Register the above OCX control in the webpage, use JS to call the method of the control to login, view and so on operation (view other operation to find: Haikang OCX Control Interface document), the code is as follows:
Code: Downloading
Resources:
VLC Official website: http://www.videolan.org
Use and control of VLC Web Plug-ins api:http://www.xuebuyuan.com/2224602.html