Modifies the layout configuration. You only need to pass the parameters that you want to modify.
Operation description
First, call the CreateCaster operation to create a production studio. Then, you can call this operation to modify the layout configuration. You only need to pass the parameters that you want to modify. This operation supports the `none` (default) and `fit` fill modes for elements.
QPS limit
The queries per second (QPS) limit for this operation is 10 calls per user. If you exceed this limit, API calls are throttled, which may affect your business. We recommend that you call this operation within the specified limit.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:ModifyCasterLayout |
update |
*Caster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-shanghai |
| VideoLayer |
array<object> |
Yes |
The video information. |
|
|
object |
No |
The video information. |
||
| FillMode |
string |
No |
The fill mode of the element.
|
fit |
| FixedDelayDuration |
integer |
No |
The fixed delay for the video. Use this to synchronize captions. Unit: milliseconds. Default value: 0. Valid values: 0 to 5000. |
5000 |
| HeightNormalized |
number |
No |
The normalized height of the layer element.
|
1 |
| PositionNormalized |
array |
No |
The normalized coordinates of the layer element, in the format Note
The x and y values must be normalized. |
0.3 |
|
number |
No |
The normalized coordinates of the layer element, in the format Note
The x and y values must be normalized. |
[0,3] |
|
| PositionRefer |
string |
No |
The reference point for the element's position. Valid values:
|
topLeft |
| WidthNormalized |
number |
No |
The normalized width of the layer element.
|
1 |
| AudioLayer |
array<object> |
Yes |
The audio information. |
|
|
object |
No |
The audio information. |
||
| FixedDelayDuration |
integer |
No |
The fixed delay for the audio. Use this to synchronize captions. Unit: milliseconds. Default value: 0. Valid values: 0 to 5000. |
5000 |
| ValidChannel |
string |
No |
The audio channels used for volume input. Valid values:
|
all |
| VolumeRate |
number |
No |
The normalized height ratio of the layer element. The width is scaled proportionally to maintain the aspect ratio. The default value is 0. This value displays the element at its original size. |
1 |
| BlendList |
array |
Yes |
The location ID of the video resource. This corresponds to the LocationId parameter. For more information, see AddCasterVideoResource. The order of IDs in this list must match the order of elements in the VideoLayer list. |
RV02 |
|
string |
No |
The location ID of the video resource. This corresponds to the LocationId parameter. For more information, see AddCasterVideoResource. The order of IDs in this list must match the order of elements in the VideoLayer list. |
RV02 |
|
| MixList |
array |
Yes |
The location ID of the audio resource. This corresponds to the LocationId parameter. For more information, see AddCasterVideoResource. The order of IDs in this list must match the order of elements in the AudioLayer list. |
RV02 |
|
string |
No |
The location ID of the audio resource. This corresponds to the LocationId parameter. For more information, see AddCasterVideoResource. The order of IDs in this list must match the order of elements in the AudioLayer list. |
RV02 |
|
| CasterId |
string |
Yes |
The ID of the production studio.
Note
The production studio name in the list on the Cloud Production Studio page is the production studio ID. |
LIVEPRODUCER_POST-cn-0pp1czt**** |
| LayoutId |
string |
Yes |
The layout ID. If you added the layout using the AddCasterLayout operation, use the returned LayoutId value. |
21926b36-7dd2-4fde-ae25-51b5bc8e**** |
In the request parameters, N indicates the sequence number of an element. For example, VideoLayer.1.FillMode specifies the fill mode for the first element, and VideoLayer.2.FillMode specifies the fill mode for the second element.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| LayoutId |
string |
The layout ID. Use this ID to query the list of layouts for the production studio. |
21926b36-7dd2-4fde-ae25-51b5bc8e**** |
| RequestId |
string |
The request ID. |
16A96B9A-F203-4EC5-8E43-CB92E68F4CD8 |
Examples
Success response
JSON format
{
"LayoutId": "21926b36-7dd2-4fde-ae25-51b5bc8e****",
"RequestId": "16A96B9A-F203-4EC5-8E43-CB92E68F4CD8"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidCasterId.Malformed | %s, please check and try again later. | The parameter CasterId is invalid, please check and try again. |
| 400 | InvalidUserId.Malformed | %s, please check userId. | The userId passed in is invalid, please check. |
| 400 | InvalidLayoutId.Malformed | %s, please check and try again later. | The LayoutId is invalid, please check and try again. |
| 400 | InvalidParameter.Malformed | There are invalid parameters: %s. | There are invalid parameters: %s. |
| 400 | InvalidVideoLayersAndBlendListSize.Mismatch | %s, please check and try again later. | The size of the VideoLayers does not match the size of the BlendList, please check and try again. |
| 400 | InvalidAudioLayersAndMixListSize.Mismatch | %s, please check and try again later. | The size of the AudioLayers does not match the size of the MixList, please check and try again. |
| 400 | InvalidPositionNormalized.Malformed | %s, please check and try again later. | The parameter PositionNormalized is invalid, please check and try again. |
| 400 | InvalidBlendList.ExceedNorm | %s, please check and try again later. | BlendList size exceeds specification, please check and try again. |
| 400 | InvalidMixList.ExceedNorm | %s, please check and try again later. | MixList size exceeds specification, please check and try again. |
| 400 | InvalidHeightOrWidthNormalized | %s, please check and try again later. | HeightNormalized or WidthNormalized parameters are invalid, please check and try again. |
| 400 | InvalidVideoLayersConfig | %s, please check and try again later. | The size of the VideoLayers does not match the size of the BlendList, please check and try again. |
| 400 | InvalidAudioLayersConfig | %s, please check and try again later. | The size of the AudioLayers does not match the size of the MixList, 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 | InvalidLayout.NotFound | %s, please check and try again later. | LayoutId does not exist, please check and try again. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.