Queries the layouts of a production studio.
Operation description
You can call this API operation to query the layouts of a production studio. If you do not specify a layout ID, all layouts of the studio are returned.
QPS limits
The queries per second (QPS) limit for this API operation is 15 calls per second for each user. If you exceed this limit, API calls are throttled. This can affect your business, so you should call this API operation at a reasonable rate.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:DescribeCasterLayouts |
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.
Note
The name of the production studio in the list on the Cloud Production Studio page is the production studio ID. |
LIVEPRODUCER_POST-cn-0pp1czt**** |
| LayoutId |
string |
No |
The layout ID. If you do not provide a value for LayoutId, all layouts of the production studio are returned. |
72d2ec7a-4cd7-4a01-974b-7cd53947**** |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
|||
| Layouts |
object |
||
| Layout |
array<object> |
The layout list. |
|
|
object |
The layout list. |
||
| 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. Note
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. |
|
|
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 Note
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 |
The request ID. |
3be7ade8-d907-483c-b24a-0dad45**** |
| Total |
integer |
The total number of records. |
3 |
Examples
Success response
JSON format
{
"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
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidCasterId.Malformed | %s | |
| 401 | IllegalOperation | %s | |
| 500 | InternalError | %s | |
| 404 | InvalidCaster.NotFound | %s |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.