开始录像回放。
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | StartPlayback | 接口名称。当前 API 的名称为 StartPlayback 。 |
Version | String | 是 | 2023-10-01 | 接口版本。当前 API 的版本为 2023-10-01 。 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
StreamID | String | 是 | 23355851-2d31-461c-9e44-968a0afb72f2 | 视频流 ID |
StartTime | Integer | 是 | 1660031340 | 回放片段的开始时间,秒级时间戳,例如:1660031340 |
EndTime | Integer | 是 | 1660041340 | 回放片段的结束时间,秒级时间戳,例如:1660041340 |
下表仅列出本接口特有的返回参数。更多信息请参见返回结构。
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
PlaybackID | String | 524c804d-0149-4b58-8209-2f17f6xxxxxx | 回放流ID |
PushUrl | String | rtmp://xxx.xxx-push.org/xxx/xxx?volcTime=1681xxxxxx&volcSecret=xxx | 推流地址 |
PullUrls | Array of String | ["rtmp://xxx.pull.video.com/xxx/xxx_xxx"] | 拉流地址(多个) |
POST https://open.volcengineapi.com?Action=StartPlayback&Version=2023-10-01 { "StreamID": "524c804d-0149-4b58-8209-2f17f6xxxxxx", "DeviceNSID": "66416b0b1-8a56-4854-8f9e-cb1372xxxxxx", "ChannelID": "000000005813xxxxxxxx", "StartTime": 1660031340, "EndTime": 1660041340 }
{ "ResponseMetadata": { "Service": "aiotvideo", "Version": "2023-10-01", "Action": "StartPlayback", "RequestId": "202306041104200100100232280022D31", "Region": "cn-north-1" }, "Result": { "PullUrls": [ "rtmp://xxx.pull.video.com/xxx/xxx_xxx" ], "PushUrl": "rtmp://xxx.xxx-push.org/xxx/xxx?volcTime=1681xxxxxx&volcSecret=xxx", "PlaybackID": "524c804d-0149-4b58-8209-2f17f6xxxxxx" } }
您可访问公共错误码,获取更多错误码信息。