查询在云端保存的视频录像的播放地址。
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
| 参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| Action | String | 是 | CloudRecordPlay | 接口名称。当前 API 的名称为 CloudRecordPlay。 |
| Version | String | 是 | 2021-01-01 | 接口版本。当前 API 的版本为 2021-01-01。 |
| 参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
StreamID | String | 否 |
| 配置了录制模板的视频流 ID,可通过调用 ListStreams 接口获取 |
| StartTs | Integer | 是 | 2023-07-03T21:10:10+08:00 | 查询视频录像的起始时间,支持时间戳或RFC3339时间戳格式,例如:2023-07-03T21:10:10+08:00 |
| EndTs | Integer | 是 | 2023-07-03T22:10:10+08:00 | 查询视频录像的结束时间,支持时间戳或RFC3339时间戳格式,例如:2023-07-03T22:10:10+08:00 |
| TokenValid | Integer | 否 | 7200 | 返回视频录像播放地址的 token 有效期;单位:秒;默认值:3600 |
DeviceNSID | String | 否 | 设备国标 ID
| |
| ChannelID | String | 否 | 通道 ID | |
StreamingIndex | Integer | 否 | 主子码流编号:
| |
| Resolution | String | 否 | 分辨率编码(可参考 GB28181-2022 协议附录G中的定义) |
下表仅列出本接口特有的返回参数。更多信息请参见返回结构。
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| ID | String | https://aiot.xxx.com/media_record/v1/file/get_m3u8?StreamID=xxxxxx&IsLive=0&Start=1664173508000&End=1664174508000 | m3u8 的播放地址 |
| HLS | String | https://aiot.xxx.com/media_record/v1/file/get_format?StreamID=xxxxxx&IsLive=0&Format=m3u8 | m3u8 播放地址 |
| MP4 | String | https://aiot.abc.com/media_record/v1/file/get_format?StreamID=xxxxxx&IsLive=0&Format=mp4 | mp4 播放地址 |
POST https://open.volcengineapi.com?Action=CloudRecordPlay&Version=2021-01-01 { "StreamID": "dbc2000c-56e0-4ccc-ba9e-df43f8xxxxxx", "StartTs": "2023-07-03T21:10:10+08:00", "EndTs": "2023-07-03T22:10:10+08:00", "TokenValid": 7200 }
{ "ResponseMetadata": { "RequestId": "2022092614423001020803609617C5DF68", "Action": "CloudRecordPlay", "Version": "2021-01-01", "Service": "aiotvideo", "Region": "cn-north-1" }, "Result": { "HLS": "https://aiot.xxx.com/media_record/v1/file/get_format?StreamID=xxxxxx&IsLive=0&Format=m3u8", "ID": "https://aiot.xxx.com/media_record/v1/file/get_m3u8?StreamID=xxxxxx&IsLive=0&Start=1664173508000&End=1664174508000", "MP4": "https://aiot.abc.com/media_record/v1/file/get_format?StreamID=xxxxxx&IsLive=0&Format=mp4" } }
您可访问公共错误码,获取更多错误码信息。