调用DescribeCasterScenes查询导播台场景列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeCasterScenes |
系统规定参数,取值:DescribeCasterScenes。 |
CasterId | String | 是 | 80787064-1c94-4dc1-85ce-9409960a**** |
导播台ID。 |
RegionId | String | 否 | cn-shanghai |
地域ID。 |
SceneId | String | 否 | b5f8c837-ceeb-424f-b30b-68e94e86**** |
场景ID。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | CF60DB6A-7FD6-426E-9288-122CC1A52FA7 |
请求ID。 |
SceneList | Array of Scene |
场景信息列表。 |
|
Scene | |||
SceneId | String | b5f8c837-ceeb-424f-b30b-68e94e86**** |
场景ID。 |
SceneName | String | scene1 |
场景名称。 |
OutputType | String | 0 |
是否正式输出。 取值:
|
LayoutId | String | 37cb2f8b-f152-4338-b928-6704f71d**** |
布局ID。 |
StreamUrl | String | rtmp://sophon-test.aliyunlive.com/caster/4a82a3d1b7f0462ea37348366201****?auth_key=1608953344-0-0-ac8c628078541d7055a170ec59a5**** |
输出流地址。 |
ComponentIds | List | ["1506396160-0-0-7de771a77102680861853af862d5****"] |
组件Id列表。 |
Status | Integer | 0 |
场景状态。 取值:
|
StreamInfos | Array of StreamInfo |
播放地址列表。 |
|
StreamInfo | |||
OutputStreamUrl | String | http://live/caster/yule.flv |
播放地址。 |
TranscodeConfig | String | lld |
转码配置。取值:
|
VideoFormat | String | flv |
格式。取值:
|
Total | Integer | 2 |
总记录数。 |
示例
请求示例
http(s)://live.aliyuncs.com/?Action=DescribeCasterScenes
&CasterId=80787064-1c94-4dc1-85ce-9409960a****
&<公共请求参数>
正常返回示例
XML
格式
<DescribeCasterScenesResponse>
<RequestId>CF60DB6A-7FD6-426E-9288-122CC1A52FA7</RequestId>
<SceneList>
<SceneId>b5f8c837-ceeb-424f-b30b-68e94e86****</SceneId>
<SceneName>scene1</SceneName>
<LayoutId>37cb2f8b-f152-4338-b928-6704f71d****</LayoutId>
<StreamUrl>rtmp://live/out/b5447c21fcfe444c9e9b6f7ba208****</StreamUrl>
<OutputType>0</OutputType>
<Status>1</Status>
</SceneList>
<SceneList>
<SceneId>86f661ee-c893-4aae-a852-ccacf200****</SceneId>
<SceneName>scene2</SceneName>
<StreamUrl>rtmp://live/out/37087ce7a76e424bbb61e8b5eefe****</StreamUrl>
<OutputType>1</OutputType>
<Status>1</Status>
<StreamInfos>
<VideoFormat>flv</VideoFormat>
<OutputStreamUrl>http://liveout/caster/fb628e2469f94f2aa2c0c219af8b****_lld.flv?auth_key=1506396160-0-0-7de771a77102680861853af862d5****</OutputStreamUrl>
<TranscodeConfig>lld</TranscodeConfig>
</StreamInfos>
<StreamInfos>
<VideoFormat>rtmp</VideoFormat>
<OutputStreamUrl>rtmp://liveout/caster/fb628e2469f94f2aa2c0c219af8b****_lld?auth_key=1506396160-0-0-77ed32cd82ed32ccd51a832b5765****</OutputStreamUrl>
<TranscodeConfig>lld</TranscodeConfig>
</StreamInfos>
<StreamInfos>
<VideoFormat>m3u8</VideoFormat>
<OutputStreamUrl>http://liveout/caster/fb628e2469f94f2aa2c0c219af8b****.m3u8?auth_key=1506396160-0-0-d51f0512dcf76aa749f79f53ae64****</OutputStreamUrl>
<TranscodeConfig>lld</TranscodeConfig>
</StreamInfos>
</SceneList>
</DescribeCasterScenesResponse>
JSON
格式
{
"RequestId": "CF60DB6A-7FD6-426E-9288-122CC1A52FA7",
"SceneList": [{
"SceneId": "b5f8c837-ceeb-424f-b30b-68e94e86****",
"SceneName": "scene1",
"LayoutId": "37cb2f8b-f152-4338-b928-6704f71d****",
"StreamUrl": "rtmp://live/out/b5447c21fcfe444c9e9b6f7ba208****",
"OutputType": 0,
"Status": 1
},
{
"SceneId": "86f661ee-c893-4aae-a852-ccacf200****",
"SceneName": "scene2",
"StreamUrl": "rtmp://live/out/37087ce7a76e424bbb61e8b5eefe****",
"OutputType": 1,
"Status": 1,
"StreamInfos": [
{
"VideoFormat": "flv",
"OutputStreamUrl": "http://liveout/caster/fb628e2469f94f2aa2c0c219af8b****_lld.flv?auth_key=1506396160-0-0-7de771a77102680861853af862d5****",
"TranscodeConfig": "lld"
},
{
"VideoFormat": "rtmp",
"OutputStreamUrl": "rtmp://liveout/caster/fb628e2469f94f2aa2c0c219af8b****_lld?auth_key=1506396160-0-0-77ed32cd82ed32ccd51a832b5765****",
"TranscodeConfig": "lld"
},
{
"VideoFormat": "m3u8",
"OutputStreamUrl": "http://liveout/caster/fb628e2469f94f2aa2c0c219af8b****.m3u8?auth_key=1506396160-0-0-d51f0512dcf76aa749f79f53ae64****",
"TranscodeConfig": "lld"
}
]
}
]
}
错误码
访问错误中心查看更多错误码。
在文档使用中是否遇到以下问题
更多建议
匿名提交