DescribeCasterStreamUrl
Queries the streaming URLs of a production studio.
Operation description
Create a production studio by calling the CreateCaster operation first, and then call this operation to query the streaming URLs of the production studio. Otherwise, the InvalidScene.NotFound error is returned.
QPS limit
The QPS limit for a single user is 5 queries per second. If the limit is exceeded, API calls are throttled, which may affect your services. Call this operation at a reasonable frequency.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:DescribeCasterStreamUrl |
get |
*Caster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-shanghai |
| CasterId |
string |
Yes |
The ID of the production studio. Make sure that the specified CasterId is valid.
Note
The name of the production studio in the production studio list on the Cloud Production Studio page is the ID of the production studio. |
a2b8e671-2fe5-4642-a2ec-bf93880e**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| CasterId |
string |
The ID of the production studio. |
a2b8e671-2fe5-4642-a2ec-bf93880e**** |
| CasterStreams |
object |
||
| CasterStream |
array<object> |
The list of streaming information of the production studio. |
|
|
array<object> |
|||
| OutputType |
integer |
Indicates whether the output is a formal stream.
|
1 |
| RtmpUrl |
string |
The RTMP URL. |
rtmp://live/caster/example.edu |
| SceneId |
string |
The ID of the scene. |
23ca74e0-aca3-4e7a-8561-9d96f525**** |
| StreamInfos |
object |
||
| StreamInfo |
array<object> |
The list of playback URLs. |
|
|
object |
|||
| OutputStreamUrl |
string |
The playback URL. |
http://out/caster/example.net |
| TranscodeConfig |
string |
The transcoding configuration. Valid values:
|
lld |
| VideoFormat |
string |
The format. Valid values:
Note
The streaming domain name of this production studio must have the Real-Time Streaming (RTS) feature enabled to return the URL of the ARTC protocol. For more information about how to enable the feature, see Enable Real-Time Streaming (RTS). |
flv |
| StreamUrl |
string |
The output stream URL. |
http://live/caster/example.org |
| RequestId |
string |
The ID of the request. |
16A96B9A-F203-4EC5-8E43-CB92E6****** |
| Total |
integer |
The total number of entries. |
1 |
Examples
Success response
JSON format
{
"CasterId": "a2b8e671-2fe5-4642-a2ec-bf93880e****",
"CasterStreams": {
"CasterStream": [
{
"OutputType": 1,
"RtmpUrl": "rtmp://live/caster/example.edu",
"SceneId": "23ca74e0-aca3-4e7a-8561-9d96f525****",
"StreamInfos": {
"StreamInfo": [
{
"OutputStreamUrl": "http://out/caster/example.net",
"TranscodeConfig": "lld",
"VideoFormat": "flv"
}
]
},
"StreamUrl": "http://live/caster/example.org"
}
]
},
"RequestId": "16A96B9A-F203-4EC5-8E43-CB92E6******",
"Total": 1
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidUserId.Malformed | %s, please check userId. | The userId passed in is invalid, please check. |
| 400 | InvalidCasterId.Malformed | %s, please check and try again later. | The parameter CasterId is invalid, please check and try again. |
| 401 | IllegalOperation | %s, please check and try again later. | Operation not allowed, please check and try again. |
| 500 | InternalError | %s, please try again later. | Internal error, please try again later. |
| 404 | InvalidCaster.NotFound | %s, please check and try again later. | The guide station does not exist, please check and try again. |
| 404 | InvalidScene.NotFound | %s, please check and try again later. | Scene does not exist, please check and try again. |
| 404 | InvalidDomainName.NotFound | %s, please check and try again later. | Domain name does not exist, please check and try again. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.