This operation modifies a specified virtual studio template.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:ModifyLiveAIStudio |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-shanghai |
| StudioName |
string |
Yes |
The name of the virtual studio template. This name must be the same as the StudioName that you specified when you called the CreateLiveAIStudio operation. |
stu02 |
| Description |
string |
No |
The custom description. |
custom |
| Width |
integer |
No |
The width of the preview screen, in pixels. |
1920 |
| Height |
integer |
No |
The height of the preview screen, in pixels. The following preview resolutions (width × height) are supported:
|
1080 |
| BackgroundType |
string |
No |
The type of background material. Valid values:
|
VOD |
| BackgroundResourceId |
string |
No |
The ID of the VOD resource for the background. Obtain this ID from the VOD console. |
d0eb493192c771efba644531858c0102 |
| BackgroundResourceUrl |
string |
No |
The URL used to access the background resource. |
https://xxx.com/2.mp4 |
| MediaType |
string |
No |
The type of media material. Valid values:
|
VOD |
| MediaResourceId |
string |
No |
The ID of the VOD resource for the media. Obtain this ID from the VOD console. |
d0eb493192c771efba644531858c01102 |
| MediaResourceUrl |
string |
No |
The URL used to access the media resource. You must specify either this parameter or MediaResourceId. |
https://xxx.com/1.mp4 |
| MediaLayout |
object |
No |
The layout information of the media material. |
|
| PositionX |
number |
No |
The x-coordinate of the material. Valid values: 0 to 1. The top-left corner is used as the coordinate origin. |
0 |
| PositionY |
number |
No |
The y-coordinate of the material. Valid values: 0 to 1. The top-left corner is used as the coordinate origin. |
0 |
| HeightNormalized |
number |
No |
The normalized height of the material, which is the ratio of the material's height to the background's height. Valid values: 0 to 1. |
0.5 |
| MattingType |
string |
Yes |
The type of image matting. Valid values:
|
complex |
| MattingLayout |
object |
Yes |
The layout of the source stream after image matting is applied. |
|
| PositionX |
number |
No |
The x-coordinate of the matted object. Valid values: 0 to 1. The top-left corner is used as the coordinate origin. |
0 |
| PositionY |
number |
No |
The y-coordinate of the matted object. Valid values: 0 to 1. The top-left corner is used as the coordinate origin. |
0 |
| HeightNormalized |
number |
No |
The normalized height of the matted object, which is the ratio of the object's height to the background's height. Valid values: 0 to 1. |
0.5 |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
The response struct. |
||
| RequestId |
string |
The request ID. |
0BA6B3C4-525A-5381-A2B0-5351323F31C5 |
Examples
Success response
JSON format
{
"RequestId": "0BA6B3C4-525A-5381-A2B0-5351323F31C5"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | LiveServiceNotFound | %s | |
| 400 | InvalidParameter.PurchaseTime | %s | |
| 400 | InvalidParameter.ExpireTime | %s | |
| 400 | MissingParameter | %s | |
| 400 | InvalidChargeType.Malformed | %s | |
| 400 | InvalidChargeType.PostSupport | %s | |
| 400 | InvalidCasterTemplate.Malformed | %s | |
| 400 | InvalidParameter.Malformed | %s | |
| 400 | InvalidParameter.ChargeType | %s | |
| 400 | InvalidPeriod.Malformed | %s | |
| 400 | InvalidUserId.Malformed | %s | |
| 400 | InvalidClientToken.Malformed | %s | |
| 400 | IncorrectCasterStatus | %s | |
| 401 | CasterNumberExceed | %s | |
| 403 | PermissionDenied | %s | |
| 404 | InvalidParameter.NormType | %s | |
| 404 | InvalidConfiguration.NotFound | %s | |
| 408 | ModifyLiveAIStudio.Timeout | %s |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.