Interface description
Video Download
Note:
(1) Download method
A. segmented download: mainly download the video file on the device, download it to the server for storage, and then download it to the local by direct download;
The multipart download is divided into full- file download and multipart download.
Full file download: Direct download is supported for device types 16, 17, 20, and 22. If a video file contains multiple channels, it can only be downloaded in segments. (The equipment manufacturer type can be obtained when obtaining the positioning status)
Multipart download: All devices support multipart download.
B. direct download: mainly download the video on the server and download it to the local.
Request Example
https://v7.cmsv8.com/StandardApiAction_addDownloadTask.action?jsession=66d754dd7f41473dbd2&did=013300000001&fbtm=2024-12-01 00:00:00&fetm=2024-12-01 23:59:59&sbtm=2024-12-01 00:00:00&setm=2024-12-01 23:59:59&lab=downloadExample&fph=H20121123-112931P3A1P0.avi&vtp=1&len=5000&chn=1&dtp=1
Request parameters
| Parameter name |
Parameter type |
Must |
Example |
Parameter meaning |
| jsession |
string |
Yes |
66d754dd7f41473dbd2 |
Session number |
| did |
string |
Yes |
01330000001 |
Device# |
| fbtm |
string |
Yes |
2024-12-01 00:00:00 |
File start time, greater than or equal to source file start time, less than or equal to source file end time |
| fetm |
string |
Yes |
2024-12-01 23:59:59 |
The file end time, greater than or equal to the source file start time, and less than or equal to the source file end time |
| sbtm |
string |
Yes |
2024-12-01 00:00:00 |
Source start time |
| setm |
string |
Yes |
2024-12-01 23:59:59 |
Source End Time |
| lab |
string |
No |
downloadExample |
Video file tag |
| fph |
string |
Yes |
H20121123- 112931P3A1P0.avi |
Recording file path |
| vtp |
number |
is |
1 |
recording type, 0 means regular, 1 means alarm |
| len |
number |
yes |
5000 |
file size |
| chn |
number |
yes |
1 |
video channel |
| dtp |
number |
no |
1 |
download method, 1 means full file download, 2 means segmented download |
Return parameters
| parameter name | , parameter type | , parameter meaning |
, | result | number | , interface status code, 0 is normal, others are abnormal (for details, see [error code description](/helpCenter/doc/index.html?isStudy=1&pageType=3&docId=1321&type=1&lang=en "error code description")) | ,
Return Example
{
"result": 0
}