Consulta os layouts de um estúdio de produção.
Descrição da operação
Você pode chamar esta operação de API para consultar os layouts de um estúdio de produção. Se você não especificar um ID de layout, todos os layouts do estúdio serão retornados.
Limites de QPS
O limite de consultas por segundo (QPS) para esta operação de API é de 15 chamadas por segundo para cada usuário. Se você exceder esse limite, as chamadas de API serão limitadas. Isso pode afetar seus negócios, portanto, você deve chamar esta operação de API a uma taxa razoável.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
live:DescribeCasterLayouts |
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.
Nota
O nome do estúdio de produção na lista da página Estúdio de Produção em Nuvem é o ID do estúdio de produção. |
LIVEPRODUCER_POST-cn-0pp1czt**** |
| LayoutId |
string |
Não |
O ID do layout. Se você não fornecer um valor para LayoutId, todos os layouts do estúdio de produção serão retornados. |
72d2ec7a-4cd7-4a01-974b-7cd53947**** |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| Layouts |
object |
||
| Layout |
array<object> |
A lista de layouts. |
|
|
array<object> |
A lista de layouts. |
||
| AudioLayers |
object |
||
| AudioLayer |
array<object> |
The list of AudioLayer configurations. |
|
|
object |
The list of AudioLayer configurations. |
||
| FixedDelayDuration |
integer |
The fixed latency for the audio. This can be used for caption synchronization. Unit: milliseconds (ms). Default value: 0. Valid values: 0 to 5000. |
20 |
| ValidChannel |
string |
The sound channels that can be used for audio input. Valid values:
|
all |
| VolumeRate |
number |
The volume rate. A value of 1 indicates the original volume. Nota
The default value is 0. This displays the element in its original size. |
1 |
| BlendList |
object |
||
| LocationId |
array |
The list of associated positions. The order is the same as that of VideoLayers. |
|
|
string |
The position ID. |
RV01 |
|
| LayoutId |
string |
The layout ID. |
72d2ec7a-4cd7-4a01-974b-7cd53947**** |
| MixList |
object |
||
| LocationId |
array |
The list of associated positions. The order is the same as that of AudioLayers. |
|
|
string |
The position ID. |
RV01 |
|
| VideoLayers |
object |
||
| VideoLayer |
array<object> |
The list of VideoLayer configurations. The default array sequence is used. |
|
|
array<object> |
The list of VideoLayer configurations. The default array sequence is used. |
||
| FillMode |
string |
The fill mode of the element. Valid values:
|
fit |
| FixedDelayDuration |
integer |
The fixed latency set for the video. This can be used for caption synchronization. Unit: milliseconds (ms). Default value: 0. Valid values: 0 to 5000. |
20 |
| HeightNormalized |
number |
The normalized height of the layer element.
|
0.5 |
| PositionNormalizeds |
object |
||
| Position |
array |
The normalized position of the layer element in the format Nota
The x and y coordinates must be normalized. |
|
|
number |
The value. |
0 |
|
| PositionRefer |
string |
The reference point for the element's position. Valid values:
|
topLeft |
| WidthNormalized |
number |
The normalized width of the layer element.
|
0.5 |
| RequestId |
string |
O ID da solicitação. |
3be7ade8-d907-483c-b24a-0dad45**** |
| Total |
integer |
O número total de registros. |
3 |
Exemplos
Resposta de sucesso
JSON formato
{
"Layouts": {
"Layout": [
{
"AudioLayers": {
"AudioLayer": [
{
"FixedDelayDuration": 20,
"ValidChannel": "all",
"VolumeRate": 1
}
]
},
"BlendList": {
"LocationId": [
"RV01"
]
},
"LayoutId": "72d2ec7a-4cd7-4a01-974b-7cd53947****",
"MixList": {
"LocationId": [
"RV01"
]
},
"VideoLayers": {
"VideoLayer": [
{
"FillMode": "fit",
"FixedDelayDuration": 20,
"HeightNormalized": 0.5,
"PositionNormalizeds": {
"Position": [
0
]
},
"PositionRefer": "topLeft",
"WidthNormalized": 0.5
}
]
}
}
]
},
"RequestId": "3be7ade8-d907-483c-b24a-0dad45****",
"Total": 3
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 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. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.