How to implement real-time monitoring of haikang cameras in HTML?

Source: Internet
Author: User

How to implement real-time monitoring of haikang cameras in HTML?

Recently, the company has arranged for CCFA to implement real-time monitoring of a webpage playback camera. Baidu has been on the Internet for a long time, and many of them are directly implemented using the vlc plug-in. However, currently mainstream browsers do not support the vlc plug-in, and it has not been successful for a long time.

Most of the online implementations are as follows:

<Object type = 'application/x-vlc-in 'id = 'vlc' events = 'true' width = "720" height = "540"

Pluginspage = "http://www.videolan.org" codebase = "http://downloads.videolan.org/pub/videolan/vlc-webplugins/2.0.6/npapi-vlc-2.0.6.tar.xz">

<Param name = 'mrl' value = rtsp: // [username]: [password] @ [ip]: [port]/[codec]/[channel]/[subtype]/av_stream '/>

<Param name = 'Volume 'value = '50'/>

<Param name = 'autoplay' value = 'true'/>

<Param name = 'login' value = 'false'/>

<Param name = 'fullscreen' value = 'false'/>

</Object>

When an article is accidentally discovered, you can use a tool to push the stream and then play the video on the webpage.

The final implementation:

After the test, there will be a latency of about 2 seconds, which is still within the acceptable range.

In fact, there is another implementation method that can obtain the real-time video stream of the camera at the java layer and play the video. It is still under study...

 

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.