...
For IP cameras stream URL is: http://{login}:{password}@{CURRENT IP ADDRESS}/ipcam_1 (2, 3 and so on)
For RTSP IP cameras stream URL is: http://{CURRENT IP ADDRESS}/rtspcam_604001 (here is camera element id)
Requests for management:
getelement - read the camera element data. Extra options are:
k - the user session ID;
id - the ID of the item.
USB camera (type="usb-cam") |
---|
<element id="403001" module="2031" num="1" clas="devhwr" type="usb-cam" name="USB Web camera" fps="10.0" username="" password="" resolution="640x480" proxyurl="/webcam/?action=stream" /> |
AV camera (type="av-cam") |
---|
<element id="405001" module="2031" num="100" clas="devhwr" type="av-cam" name="AV camera" enable="1" resolution="720x576" proxyurl="/cam/" /> |
IP camera (type="ip-cam") |
---|
<element id="402001" module="2031" num="2" clas="devhwr" type="ip-cam" name="IP cam 01" url="http://192.168.0.35/webcam/?action=stream" fps="0" username="" password="" proxy="1" proxyurl="/ipcam_1/" /> |
RTSP IP camera (type="rtsp ip-cam") |
---|
<element id="406001" module="2031" num="1" clas="devhwr" type="rtsp ip-cam" name="rtsp_01" url="rtsp://192.168.0.222/user=admin_password=_channel=1_stream=0.sdp?real_stream" username="" password="" proxyurl="/rtspcam_406001" /> |
here:
proxyurl - an additional address for accessing the stream of cameras, for USB and AV cameras is fixed, for IP cameras, formed by a num field or id field;
proxy - enable (1) or disable (0) proxying for current IP camera.
...
k - user session ID;
id - the identifier of the camera’s element.
Response for getcamfiles |
---|
<filelist id="405001"> <entry file="/satahdd/VT900-host900/video/405001/2020.06.02_12-27-11.mp4" time="1591100831" duration="190"/> <entry file="/satahdd/VT900-host900/video/405001/2020.06.02_12-45-23.mp4" time="1591101923" duration="200"/> <entry file="/satahdd/VT900-host900/video/405001/2020.06.02_12-51-05.mp4" time="1591102265" duration="190"/> </filelist> |
Each file is described in the "entry" tag, where:
...
addwebcam - add / modify the IP or RTSP IP camera. Extra options are:
k - user session ID;
id - the identifier of the camera element; if the identifier is absent, a new element is created; otherwise the existing one is modified;
name - the name of the element, the length is not more than 63 characters;
username - username if needed;
password - password if needed;
fps - the image update is performed 1 time in "fps" seconds. If field set as 0, it is considered that "url" field link to mjpeg stream (IP camera only);
url - IP camera web addresspath to the camera stream in a local network;
proxy - enable (1) or disable (0) proxying for current IP camera (IP camera only).
delwebcam - delete the IP camera. Extra options are:
...