Search code examples
cameraiphikvision

Hikvision MJPEG substream embed to HTML


we're using a couple of hundreds Hikvision Cameras (DS-9664NI-I8) for a University. We want to embed them to a web page hosted locally. Cameras, NVR, and webpage are on same local network.

We don't want to use RSTP, we will use HTTP.

We're able to run the camera sub-stream on the browser using the following URL

http://<username>:<password>@<IP Address>/Streaming/channels/102/httpPreview

But, when I embed this to image src, this won't work, as browsers don't support the HTML embedded credentials.

How to play the camera streams on the web page?


Solution

  • You can disable security on streams. But if it possible - that depends on your camera and its firmware version. And be aware of consequences of course, secure your image with another means - firewall, etc.