DescribeStudioLayouts
Retrieves the layout settings of a virtual studio.
Operation description
First, add the layout settings of a virtual studio by calling the AddStudioLayout operation, and then call this operation to retrieve the layout settings.
QPS limits
The queries per second (QPS) limit for a single user is 15. If the limit is exceeded, API calls are throttled, which may affect your services. Make API calls at a reasonable rate.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:DescribeStudioLayouts |
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
|
5c6a2a0d-f228-4a64-af62-20e91b96**** |
| LayoutId |
string |
No |
The layout ID. Separate multiple layout IDs with commas (,). If you do not specify this parameter, all layouts under the production studio are returned. If you added the layout settings for the virtual studio by calling the AddStudioLayout operation, check the value of the LayoutId parameter returned in the response. |
445409ec-7eaa-461d-8f29-4bec2eb9**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The layout information. |
||
| RequestId |
string |
The request ID. |
5c6a2a0d-f228-4a64-af62-20e91b9676b3 |
| StudioLayouts |
array<object> |
The layout information. |
|
|
array<object> |
The layout information. |
||
| BgImageConfig |
object |
The background resource configuration. |
|
| Id |
string |
The unique ID of the background material. |
k12kj31**** |
| ImageUrl |
string |
The URL of the material. |
http://example.org |
| LocationId |
string |
The location ID. |
RV01 |
| MaterialId |
string |
The ID of the video-on-demand material. |
asdfas9df89asd8f9**** |
| CommonConfig |
object |
The general layout information. This field is returned when the layout is a general layout. |
|
| ChannelId |
string |
The ID of the channel location to which the video resource is bound. |
RV01 |
| VideoResourceId |
string |
The ID of the video resource. |
asdfasdfasdfasdfa**** |
| LayerOrderConfigList |
array<object> |
The layer order configuration. |
|
|
object |
The layer order configuration. |
||
| Id |
string |
The unique ID of the resource. |
k12kj31**** |
| Type |
string |
The type of the resource configuration. Valid values:
|
media |
| LayoutId |
string |
The ID of the studio layout. |
445409ec-7eaa-461d-8f29-4bec2eb9**** |
| LayoutName |
string |
The name of the studio layout. |
test |
| LayoutType |
string |
The type of the studio layout. Valid values:
|
studio |
| MediaInputConfigList |
array<object> |
The multimedia input resource configuration. |
|
|
object |
The multimedia input source configuration. |
||
| ChannelId |
string |
The ID of the channel location to which the video resource is bound. |
RV01 |
| FillMode |
string |
The fill mode. Default value: none. |
none |
| HeightNormalized |
number |
The normalized height of the material, which is the ratio of the material height to the background height. Valid values: 0 to 1. |
0.4 |
| Id |
string |
The unique ID of the multimedia material. |
k12kj31**** |
| ImageMaterialId |
string |
The ID of the video-on-demand image material. |
lkajsdfsa8fd89asd8**** |
| Index |
integer |
The serial number of the multimedia material. This parameter is used for frontend display and has no logical effect. |
1 |
| PositionNormalized |
array |
The normalized coordinates of the fill area for the material, in the |
|
|
number |
The normalized coordinates of the fill area for the material, in the |
0.1 |
|
| PositionRefer |
string |
The reference coordinates for the material position. Default value: topLeft, which indicates that the upper-left corner is used as the reference point for position settings. |
topLeft |
| VideoResourceId |
string |
The ID of the video resource. |
asdfasdfasdfasdfa**** |
| WidthNormalized |
number |
The normalized width of the material, which is the ratio of the material width to the background width. Valid values: 0 to 1. |
0.4 |
| ScreenInputConfigList |
array<object> |
The chroma key input configuration. |
|
|
array<object> |
The chroma key input configuration. |
||
| AudioConfig |
object |
The audio configuration. |
|
| ValidChannel |
string |
The corresponding channel. |
1 |
| VolumeRate |
number |
The volume. |
1.0 |
| ChannelId |
string |
The ID of the channel location to which the video resource is bound. |
RV01 |
| Color |
string |
The chroma key color. Valid values:
|
green |
| HeightNormalized |
number |
The normalized height, which is the ratio of the extracted portrait height to the background height. Valid values: 0 to 1. |
0.4 |
| Id |
string |
The unique ID of the chroma key source material. |
k12kj31**** |
| Index |
integer |
The serial number of the chroma key source. This parameter is used for frontend display and has no logical effect. |
1 |
| OnlyAudio |
boolean |
Specifies whether only audio is included. |
true |
| PortraitType |
integer |
The portrait type. Valid values:
|
0 |
| PositionX |
string |
The x-coordinate of the position. Valid values: 0 to 1. The upper-left corner is used as the reference point for the material position. |
0.1 |
| PositionY |
string |
The y-coordinate of the position. Valid values: 0 to 1. The upper-left corner is used as the reference point for the material position. |
0.2 |
| VideoResourceId |
string |
The ID of the video resource. |
asdfasdfasdfasdfa**** |
| Total |
integer |
The total number of layouts. |
1 |
Examples
Success response
JSON format
{
"RequestId": "5c6a2a0d-f228-4a64-af62-20e91b9676b3",
"StudioLayouts": [
{
"BgImageConfig": {
"Id": "k12kj31****",
"ImageUrl": " http://example.org",
"LocationId": "RV01",
"MaterialId": "asdfas9df89asd8f9****"
},
"CommonConfig": {
"ChannelId": "RV01",
"VideoResourceId": "asdfasdfasdfasdfa****"
},
"LayerOrderConfigList": [
{
"Id": "k12kj31****",
"Type": "media"
}
],
"LayoutId": "445409ec-7eaa-461d-8f29-4bec2eb9****",
"LayoutName": "test",
"LayoutType": "studio",
"MediaInputConfigList": [
{
"ChannelId": "RV01",
"FillMode": "none",
"HeightNormalized": 0.4,
"Id": "k12kj31****",
"ImageMaterialId": "lkajsdfsa8fd89asd8****",
"Index": 1,
"PositionNormalized": [
0.1
],
"PositionRefer": "topLeft",
"VideoResourceId": "asdfasdfasdfasdfa****",
"WidthNormalized": 0.4
}
],
"ScreenInputConfigList": [
{
"AudioConfig": {
"ValidChannel": "1",
"VolumeRate": 1
},
"ChannelId": "RV01",
"Color": "green",
"HeightNormalized": 0.4,
"Id": "k12kj31****",
"Index": 1,
"OnlyAudio": true,
"PortraitType": 0,
"PositionX": "0.1",
"PositionY": "0.2",
"VideoResourceId": "asdfasdfasdfasdfa****"
}
]
}
],
"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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.