查询智见录像片段
getCondensedRecords:查询智见录像片段
功能详情
查询智见云存储或AI智见套餐生效期间生成的事件录像集锦或事件图片集锦。
请求地址
https://openapi.lechange.cn/openapi/getCondensedRecords
子账户token请求所需最小权限
"Permission":"RecordReplay" "Resource":"cam:序列号:通道号"
传入参数说明
| 参数名 | 参数类型 | 是否必填 | 默认值 | 合法值 | 参数说明 |
|---|---|---|---|---|---|
| token | String | 是 | 管理员或者子账户accessToken | ||
| deviceId | String | 是 | 设备序列号 | ||
| channelId | String | 是 | 通道号 | ||
| beginTime | String | 是 | 开始时间,格式yyyy-MM-dd HH:mm:ss | ||
| endTime | String | 是 | 结束时间,格式yyyy-MM-dd HH:mm:ss | ||
| packageType | String | 是 | 智见录像类型,aiInsight:AI智见套餐生成的事件图片集锦;aiCloudRecord:智见云存储生成的事件录像集锦 | ||
| recordId | String | 是 | 分页查询起始录像ID,第一页传-1 | ||
| count | Integer | 是 | 每页查询数量 |
样例输入
{
"id":"d5c287b4-5b2f-4f03-baf5-8032c5c354af",
"system":{
"ver":"1.0",
"appId":"lcdxxxxxxxxx",
"sign":"74bc756ebd53e9eef2836f8cf1730c10",
"time":1599031074,
"nonce":"8ec8a7bd1d1c95420de20d92422d457d"
},
"params":{
"token":"At_12345678901234567890123456789012",
"deviceId":"TESTQWERXXXX",
"channelId":"0",
"beginTime":"2023-08-17 10:22:23",
"endTime":"2023-09-17 10:22:23",
"packageType":"aiCloudRecord",
"recordId":"213123",
"count":10
}
}
返回data字段说明
| 字段名 | 字段类型 | 字段说明 | ||
|---|---|---|---|---|
| records | recordId | Long | 智见录像Id | |
| productId | String | IoT设备产品id | ||
| deviceId | String | 设备序列号 | ||
| channelId | String | 通道号 | ||
| channelName | String | 通道名称 | ||
| encryptMode | String | 录像加密模式,0:默认加密模式;1:用户加密模式 | ||
| createTime | String | 智见录像创建时间,yyyyMMddTHHmmss | ||
| size | Integer | 智见录像大小,单位:byte | ||
| length | Integer | 智见录像时长,单位:秒 | ||
| thumbUrl | String | 缩略图Url | ||
| type | String | 录像类型,人、车、宠物、包裹 | ||
| recordPath | String | 录像云端路径 | ||
| recordRegionId | String | 录像分区id | ||
| region | String | 录像资源区域id,用于录像下载授权定位 | ||
| expireTime | String | 录像过期时间戳,服务器时间 | ||
| streamAddr | String | 下载文件的域名地址 | ||
| userId | String | 用户id,用于openSDK客户端播放时使用 | ||
| ak | String | 鉴权相关AK | ||
| fileToken | String | 文件鉴权token | ||
| businessType | String | 业务类型,m3u:712 dav:713 | ||
| method | String | 0-老版智见录像 1-新方案智见录像 | ||
| mp4Videos | tags | String | 标签类型,人、车、宠物、包裹、AI_RISK | |
| timePoint | String | 时间点 | ||
| duration | String | 智见录像时长 | ||
| summary | String | AI分析文案 | ||
| createTime | String | 创建时间 | ||
| updateTime | String | 更新时间 | ||
| expireTime | String | 过期时间戳 | ||
样例输出
{
"id": "d5c287b4-5b2f-4f03-baf5-8032c5c354af",
"result": {
"data": {
"records": [
{
"recordId": "3304819",
"deviceId": "TESTQWERXXXX",
"channelId": "0",
"encryptMode": 1,
"channelName": "门店摄像头1",
"createTime": "20260423T000000",
"size": 238037,
"length": 22,
"thumbUrl": "http://xxxxxxxxx.xx.xxx/xxxxxx",
"type": "包裹",
"recordPath": "xxxxxxxxxxxxxx",
"recordRegionId": "xxxxx|xxxx|2|xxxxx",
"region": "1",
"expireTime": "",
"streamAddr": "https://xxxxxx.imou.com:443",
"userId": "2212322",
"ak": "tIiasd23dfsdfsdg",
"fileToken": "sdhasbdkUIKIsdljfoij34",
"businessType": "712",
"method": 0,
"mp4Videos": [
{
"duration": 24,
"summary": "办公室内多人活动,一戴眼镜白短袖男子在工作",
"expireTime": 1779850855000,
"createTime": 1777258855000,
"timePoint": "10:00",
"updateTime": 1777258855000,
"tags": [
"人"
]
}
]
}
]
},
"code": "0",
"msg": "操作成功"
}
}