Consulta a URL do stream de um estúdio de produção.
Descrição da operação
Antes de chamar esta operação, chame a operação CreateCaster para criar um estúdio de produção. Se um estúdio de produção não tiver sido criado, o erro InvalidScene.NotFound será retornado.
Limite de QPS
O limite de consultas por segundo (QPS) para esta operação é de 5 para cada usuário. As chamadas que excederem esse limite serão limitadas. Isso pode afetar seus negócios. Planeje suas chamadas de acordo.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
live:DescribeCasterStreamUrl |
get |
*Caster
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| RegionId |
string |
Não |
O ID da região. |
cn-shanghai |
| CasterId |
string |
Sim |
O ID do estúdio de produção. Certifique-se de que o CasterId esteja correto.
Nota
O nome de um estúdio de produção na lista da página Estúdio de Produção em Nuvem é o seu ID. |
a2b8e671-2fe5-4642-a2ec-bf93880e**** |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| CasterId |
string |
O ID do estúdio de produção. |
a2b8e671-2fe5-4642-a2ec-bf93880e**** |
| CasterStreams |
object |
||
| CasterStream |
array<object> |
Uma lista de streams do estúdio de produção. |
|
|
array<object> |
|||
| OutputType |
integer |
Indicates whether the stream is for final output.
|
1 |
| RtmpUrl |
string |
The RTMP URL. |
rtmp://live/caster/example.edu |
| SceneId |
string |
The ID of the scenario. |
23ca74e0-aca3-4e7a-8561-9d96f525**** |
| StreamInfos |
object |
||
| StreamInfo |
array<object> |
A 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:
Nota
The streaming domain for the production studio must have the Real-Time Streaming (RTS) feature enabled to return a URL that uses 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 |
O ID da solicitação. |
16A96B9A-F203-4EC5-8E43-CB92E6****** |
| Total |
integer |
O número total de entradas. |
1 |
Exemplos
Resposta de sucesso
JSON formato
{
"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
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 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. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.