获取标准流预览地址
GET
https://api2.hik-cloud.com/v1/carrier/wing/endpoint/video/getVideoUrl
该接口用于获取标准流预览地址
返回码 | 返回消息 | 描述 |
---|---|---|
200 | 操作成功 | 请求成功 |
10001 | 参数错误 | 校对参数 |
20001 | 摄像头不存在 | 摄像头不存在 |
20002 | 设备不存在 | 设备不存在 |
20007 | 设备离线 | 设备离线 |
20018 | 该用户不拥有该设备 | 该用户不拥有该设备 |
49999 | 数据异常 | 接口调用异常 |
50000 | 系统错误 | 系统错误 |
60019 | 设备已加密 | 设备已加密 |
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api2.hik-cloud.com/v1/carrier/wing/endpoint/video/getVideoUrl' \
--header 'Authorization: Bearer '
响应示例响应示例
{
"msg": "Operation succeeded",
"code": "200",
"data": {
"id": "247116619786670080",
"url": "rtmp://rtmp01open.ys7.com:1935/v3/openlive/203751922_1_2?expire=1605275593&id=247116619786670080&t=60ac6e4fd97e71e3e2fcceb792b042d8023cb73b6bd39c6ca769605a7d65dd2e&ev=100",
"expireTime": "2020-11-13 21:53:13"
}
}
请求参数
Query 参数
channelNo
string
通道号
示例值:
1
deviceSerial
string
设备序列号
示例值:
203751922
protocol
string
可选
示例值:
3
quality
string
可选
示例值:
1
expireTime
string
过期时间,单位秒
示例值:
86400
Header 参数
Authorization
string
可选
默认值:
Bearer {{access_token}}
返回响应
修改于 2022-05-20 07:52:29