You need to enable JavaScript to run this app.
慢直播

慢直播

复制全文
录制管理
CloudRecordPlay - 云端录像播放
复制全文
CloudRecordPlay - 云端录像播放

查询在云端保存的视频录像的播放地址。

请求说明

  • 请求方式:POST
  • 请求地址:https://open.volcengineapi.com?Action=CloudRecordPlay&Version=2021-01-01

请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数

Query

参数类型是否必选示例值描述
ActionStringCloudRecordPlay接口名称。当前 API 的名称为 CloudRecordPlay
VersionString2021-01-01接口版本。当前 API 的版本为 2021-01-01

Body

参数类型是否必选示例值描述

StreamID

String

dbc2000c-56e0-4ccc-ba9e-df43f8xxxxxx

配置了录制模板的视频流 ID,可通过调用 ListStreams 接口获取

说明:StreamID 与 “DeviceNSID+ ChannelID+ StreamingIndex+ Resolution” 组合二选一

StartTsInteger2023-07-03T21:10:10+08:00查询视频录像的起始时间,支持时间戳或RFC3339时间戳格式,例如:2023-07-03T21:10:10+08:00
EndTsInteger2023-07-03T22:10:10+08:00查询视频录像的结束时间,支持时间戳或RFC3339时间戳格式,例如:2023-07-03T22:10:10+08:00
TokenValidInteger7200返回视频录像播放地址的 token 有效期;单位:秒;默认值:3600

DeviceNSID

String

设备国标 ID
说明:

  • StreamID 与 “DeviceNSID+ ChannelID+ StreamingIndex+ Resolution” 组合二选一
  • “DeviceNSID+ ChannelID+ StreamingIndex+ Resolution” 组合中,DeviceNSID 和 ChannelID 必传,StreamingIndex 和Resolution 选传
ChannelIDString通道 ID

StreamingIndex

Integer

主子码流编号:

  • 0:主码流
  • 1~n: 子码流
ResolutionString分辨率编码(可参考 GB28181-2022 协议附录G中的定义)

返回参数

下表仅列出本接口特有的返回参数。更多信息请参见返回结构

参数类型示例值描述
IDStringhttps://aiot.xxx.com/media_record/v1/file/get_m3u8?StreamID=xxxxxx&IsLive=0&Start=1664173508000&End=1664174508000m3u8 的播放地址
HLSStringhttps://aiot.xxx.com/media_record/v1/file/get_format?StreamID=xxxxxx&IsLive=0&Format=m3u8m3u8 播放地址
MP4Stringhttps://aiot.abc.com/media_record/v1/file/get_format?StreamID=xxxxxx&IsLive=0&Format=mp4mp4 播放地址

请求示例

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"
    }
}

错误码

您可访问公共错误码,获取更多错误码信息。

最近更新时间:2026.03.30 15:15:05
这个页面对您有帮助吗?
有用
有用
无用
无用