调用DescribeCasterStreamUrl查询导播台流地址。
使用说明
先通过CreateCaster接口创建导播台,再调用本接口查询导播台流地址。
QPS限制
本接口的单用户QPS限制为15次/秒。超过限制,API调用会被限流,这可能会影响您的业务,请合理调用。更多信息,请参见QPS限制。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeCasterStreamUrl |
系统规定参数,取值:DescribeCasterStreamUrl。 |
CasterId | String | 是 | a2b8e671-2fe5-4642-a2ec-bf93880e**** |
导播台ID。
说明 直播控制台云导播台页面导播台列表中的导播台名称即导播台ID。
|
RegionId | String | 否 | cn-shanghai |
地域ID。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 16A96B9A-F203-4EC5-8E43-CB92E68F4CD8 |
请求ID。 |
CasterId | String | a2b8e671-2fe5-4642-a2ec-bf93880e**** |
导播台ID。 |
CasterStreams | Array of CasterStream |
导播台流信息列表。 |
|
CasterStream | |||
SceneId | String | 23ca74e0-aca3-4e7a-8561-9d96f525**** |
场景ID。 |
StreamUrl | String | http://live/caster/example.org |
输出流地址。 |
OutputType | Integer | 1 |
是否正式输出。
|
StreamInfos | Array of StreamInfo |
播放地址列表。 |
|
StreamInfo | |||
TranscodeConfig | String | lld |
转码配置。 取值:
|
VideoFormat | String | flv |
格式。取值:
|
OutputStreamUrl | String | http://out/caster/example.net |
播放地址。 |
RtmpUrl | String | rtmp://live/caster/example.edu |
Rtmp地址。 |
Total | Integer | 1 |
数量。 |
示例
请求示例
http(s)://live.aliyuncs.com/?Action=DescribeCasterStreamUrl
&CasterId=a2b8e671-2fe5-4642-a2ec-bf93880e****
&<公共请求参数>
正常返回示例
XML
格式
<DescribeCasterStreamUrlResponse>
<RequestId>16A96B9A-F203-4EC5-8E43-CB92E68F4CD8</RequestId>
<Total>1</Total>
<CasterStreams>
<CasterStream>
<SceneId>23ca74e0-aca3-4e7a-8561-9d96f525****</SceneId>
<StreamUrl>http://live/caster/example.org</StreamUrl>
<OutputType>1</OutputType>
<RtmpUrl>rtmp://live/caster/example.edu</RtmpUrl>
<StreamInfos>
<StreamInfo>
<OutputStreamUrl>http://out/caster/example.net</OutputStreamUrl>
<VideoFormat>flv</VideoFormat>
<TranscodeConfig>lld</TranscodeConfig>
</StreamInfo>
</StreamInfos>
</CasterStream>
</CasterStreams>
<CasterId>a2b8e671-2fe5-4642-a2ec-bf93880e****</CasterId>
</DescribeCasterStreamUrlResponse>
JSON
格式
{
"DescribeCasterStreamUrlResponse": {
"RequestId": "16A96B9A-F203-4EC5-8E43-CB92E68F4CD8",
"Total": 1,
"CasterStreams": {
"CasterStream": {
"SceneId": "23ca74e0-aca3-4e7a-8561-9d96f525****",
"StreamUrl": "http://live/caster/example.org",
"OutputType": 1,
"RtmpUrl": "rtmp://live/caster/example.edu",
"StreamInfos": {
"StreamInfo": {
"OutputStreamUrl": "http://out/caster/example.net",
"VideoFormat": "flv",
"TranscodeConfig": "lld"
}
}
}
},
"CasterId": "a2b8e671-2fe5-4642-a2ec-bf93880e****"
}
}
错误码
访问错误中心查看更多错误码。