Appearance
获取通道报警录像流URL
ts
POST https://saas.bisen-iot.com/api/device/channel/alarm/playback
报警录像流URL
- 发送appId、deviceNo、channelNo、protocol和streamType等时间范围参数至云端,可获取通道下指定协议的警报录像流URL地址
使用场景
- 可通过URL预览通道中指定时间段内的警报录像视频
备注
- 若应用为下线状态则不可执行此操作
请求数据
header域
| 名称 | 类型 | 可空 | 默认 | 描述 |
|---|---|---|---|---|
| Authorization | String | N | 调用鉴权接口获取(拼接前缀:Bearer+空格) | |
| Content-Type | String | N | application/json | 指定请求的媒体类型 |
Body域
| 名称 | 类型 | 可空 | 默认 | 描述 |
|---|---|---|---|---|
| appId | String | N | 应用Id | |
| channelNo | String | N | 通道号 | |
| deviceNo | String | N | 设备序列号 | |
| protocol | String | N | 协议(rtsp/rtmp/hls) | |
| streamType | int | N | 码流类型 1:主码流 2:辅码流 | |
| beginTime | String | N | 录像开始时间, 精确到秒 | |
| endTime | String | N | 录像结束时间,精确到秒 | |
| recordLocation | int | Y | 存储类型 0: 中心存储 1:设备存储 | |
| recordType | int | Y | 录像类型 1:普通录像 2:报警录像 |
返回数据
200 返回样式
ts
{
"code": 0,
"msg": "success",
"data": {
"deviceNo": "1000114", // 设备序列号
"channelNo": "320005", // 通道号
"url": "xxxxxxxxxxxxxx" // 码流URL
}
}