4.4.4 搜索存在回放录像的日期
接口说明:
名称 | 内容 |
---|---|
URL | https://xxx/tums/playback/v1/searchYear |
功能说明 | 搜索存在回放数据的日期 |
使用限制 | 无 |
请求参数:
参数名称 | 参数描述 | |
---|---|---|
id List<Object> | videoDevId | 设备索引 |
storageDevId | 存储设备索引,可选(不传时默认为其关联的NVR) | |
year String | 搜索的年份 | |
sourceType int | 数据源的类型 (目前只支持NVR,故可以不填该内容,后台不会做检查) |
返回参数:
参数名称 | 参数描述 | |
---|---|---|
error_code | 返回码,0 – 成功,其他- 失败,具体请参考返回码章节 | |
result | videoDevId String | 设备索引 |
dates List<String> | 查询到该年份的录像,以天为单位,每个单位由 mmdd00x 命名,其中x对应不同的录像类型: 1定时录像,2移动侦测录像,3表示都有 | |
errorCode int | 返回码,对应每个设备操作的结果 |
示例:
https://xxx/tums/playback/v1/searchYear request: { "id": [ { "videoDevId": "2", "storageDevId": "2" } ], "year": "2018", "sourceType": 1 } response: { "result": [{ "videoDevId": "1", "dates": ["0729001"] "errorCode": 0, }] "error_code":0 }