Haikang camera video real-time monitoring

Source: Internet
Author: User
Tags win32

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.