HTML realizes real-time monitoring function of Hikvision camera

HTML realizes real-time monitoring function of Hikvision camera

Recently the company has arranged to do some CCFA stuff, one of which is to make a web page to play the real-time monitoring of the camera. I searched Baidu for a long time online, and many of them are implemented directly using the VLC plug-in. However, the mainstream browsers currently no longer support the VLC plug-in, and I have not succeeded after a long time.

Most of the online implementations are as follows:

<object type='application/x-vlc-plugin' 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='loop' value='false' />
<param name='fullscreen' value='false' />
</object>

I accidentally found an article that said that you can use tools to push the stream, and then use <video> to play it on the web page.

The final effect diagram:

After testing, it was found that there would normally be a delay of about 2 seconds, which is still within an acceptable range.

Summarize

The above is the editor's introduction to HTML to realize the real-time monitoring function of Hikvision cameras. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!

<<:  Install ethereum/Ethereum from scratch under CentOS7

>>:  A brief discussion on front-end network, JavaScript optimization and development tips

Recommend

CSS code for arranging photos in Moments

First, you can open Moments and observe several l...

Example of JSON output in HTML format (test interface)

To display the JSON data in a beautiful indented ...

Sample code for modifying the input prompt text style in html

On many websites, we have seen the input box disp...

MySQL 5.7 and above version download and installation graphic tutorial

1. Download 1. MySQL official website download ad...

Common CSS Errors and Solutions

Copy code The code is as follows: Difference betw...

Vue+Element realizes paging effect

This article example shares the specific code of ...

Multiple methods to modify MySQL root password (recommended)

Method 1: Use the SET PASSWORD command MySQL -u r...

How to manually upgrade the kernel in deepin linux

deepin and Ubuntu are both distributions based on...

Detailed explanation of Nginx's control over access volume

Purpose Understand the Nginx ngx_http_limit_conn_...

Pessimistic locking and optimistic locking in MySQL

In relational databases, pessimistic locking and ...

Implementation of Webpack3+React16 code splitting

Project Background Recently, there is a project w...