最近更新时间:2023.02.24 10:02:40
首次发布时间:2022.03.29 22:10:12
获取当前直播间的推流地址信息。
以下请求参数列表仅列出了该接口的部分公共参数,完整公共参数列表见公共请求参数。
参数 | 类型 | 是否必选 | 描述 |
---|---|---|---|
Action | String | 是 | 接口名称 |
Version | String | 是 | 接口版本。直播当前 API 的版本为 2020-06-01 |
ActivityId | Int64 | 是 | 直播间 ID |
参数 | 类型 | 描述 |
---|---|---|
LineDetails | Array of LineDetails | 直播流信息 |
参数 | 类型 | 描述 |
---|---|---|
LineId | Int64 | 直播流 ID |
LineName | String | 直播流名称 |
MainPushInfo | Array of PushInfo | 直播流主流的推流地址 |
BackPushInfo | Array of PushInfo | 直播流备流的推流地址 |
Ratio | String | 直播流的分辨率 |
ForwardInfo | Array of ForwardInfo | 直播流主流的拉流转推信息 |
BackupForwardInfo | Array of ForwardInfo | 直播流备流的拉流转推信息 |
ExpireTime | Int64 | 推流码的过期时间 |
参数 | 类型 | 描述 |
---|---|---|
PushPath | String | 推流服务器 URL |
PushUrl | String | 推流完整 URL |
StreamingCode | String | 推流串流秘钥 |
参数 | 类型 | 描述 |
---|---|---|
PullStreamUrl | String | 拉流直播的拉流 URL |
PullStreamStatus | String | 拉流直播的任务状态。支持以下取值
|
PullStreamCheckStatus | String | 直播流主流的推流地址。支持以下取值
|
Get http://livesaas.volcengineapi.com/?Action=GetStreamsAPI&Version=2020-06-01&ActivityId=1231231231
{ "ResponseMetadata":{ "RequestId":"202201201826170101501312091D1C09D2", "Action":"GetStreamsAPI", "Version":"2020-06-01", "Service":"livesaas", "Region":"cn-north-1", "SystemTime":1656067132 }, "Result":{ "LineDetails":[ { "LineId":123, "LineName":"线路1", "MainPushInfo":{ "PushPath":"https://example-livesaas.com/example", "StreamingCode":"livesaas?key=example", "PushUrl":"https://example-livesaas.com" }, "BackPushInfo":{ "PushPath":"https://example-livesaas.com/example", "StreamingCode":"livesaas?key=example", "PushUrl":"https://example-livesaas.com/livesaas?key=example" }, "Ratio": "1920*1080", "ForwardInfo":{ "PullStreamUrl":"https://example/livesaas?key=example", "PullStreamStatus":1, "PullStreamCheckStatus":1 }, "BackupForwardInfo":{ "PullStreamUrl":"https://example/livesaas?key=example", "PullStreamStatus":1, "PullStreamCheckStatus":1 }, "ExpireTime":1643004493 } ] } }
{ "ResponseMetadata":{ "RequestId":"201806041104200100100232280022D30", "Action":"GetStreamsAPI", "Version":"2020-06-01", "Service":"livesaas", "Region":"cn-north-1", "SystemTime":1656067132, "Error":{ "Code":"200000", "Message":"参数异常" } } }
访问公共错误码获取详细信息。