lundi 25 février 2019

How can i record a stream with a dahua cam?

I am using Django. The problem is that i need to start and stop a recording with a Dahua cam from a function in Django and later save that recording in a model, Dahua has an API to get and set its configuration, but not to directly start and stop a recording. To show the stream in HTML5 we use the following code.

<div class="h-50 border border-right-0 border-left-0">
    <div id="vxg_media_player1" class="vxgplayer h-100 w-100" 
    url="rtsp://username:password@192.168.1.108/cam/realmonitor? 
    channel=1&subtype=1" aspect-ratio latency="3000000" autostart controls 
    avsync debug></div>
    </div>

A JS Framework exists ( WEB RTC ), but it only works with a video tag.




Aucun commentaire:

Enregistrer un commentaire