Modifies a component of a production studio.
Usage notes
You can call this operation to modify a text, image, or subtitle component.
QPS limit
You can call this operation up to 10 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see QPS limits.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
Action | String | Yes | ModifyCasterComponent | The operation that you want to perform. Set the value to ModifyCasterComponent. |
CasterId | String | Yes | LIVEPRODUCER_POST-cn-0pp1czt**** | The ID of the production studio.
Note You can find the ID of the production studio in the Instance Name column. |
ComponentId | String | Yes | 05ab713c-676e-49c0-96ce-cc408da1**** | The ID of the component. |
ComponentName | String | No | text01 | The name of the component. By default, the name is the ID of the component. |
ComponentType | String | No | text | The type of the component. Valid values:
|
Effect | String | No | animateV | The display effect for the component. Valid values:
|
ComponentLayer | String | No | {"HeightNormalized":"1","PositionRefer":"topRight","WidthNormalized":"0","PositionNormalized":["0.1","0.2"]} | The information about the component layer, such as the size and layout. The value is a JSON string. This parameter contains the following fields:
|
TextLayerContent | String | No | {"BorderWidthNormalized":"1","SizeNormalized":"0.2","Color":"0x000000","FontName":"KaiTi","BorderColor":"0x000000","Text":"hello world!"} | The information about the text component. The value is a JSON string. This parameter contains the following fields: Important This parameter is required if you set ComponentType to text.
|
ImageLayerContent | String | No | {"MaterialId":"6cf724c6ebfd4a59b5b3cec6f10d5ecf"} | The information about the image component. The value is a JSON string. Important This parameter is required if you set ComponentType to image. The MaterialId field specifies the ID of the material from the media asset library. |
CaptionLayerContent | String | No | {"BorderWidthNormalized":0.01,"SizeNormalized":0.05,"Color":"0x000000","LocationId":"RV01","SourceLan":"cn","FontName":"KaiTi","BorderColor":"0xffffff"} | The information about the subtitle component. The value is a JSON string. This parameter contains the following fields: Important This parameter is required if you set ComponentType to caption.
|
Fonts used in a production studio
Font | Value for FontName |
KaiTi | KaiTi |
Alibaba PuHuiTi-Regular | AlibabaPuHuiTi-Regular |
Alibaba PuHuiTi-Bold | AlibabaPuHuiTi-Bold |
Alibaba PuHuiTi-Light | AlibabaPuHuiTi-Light |
Source Han Sans-Regular | NotoSansHans-Regular |
Source Han Sans-Bold | NotoSansHans-Bold |
Source Han Sans-Light | NotoSansHans-Light |
Response parameters
Parameter | Type | Example | Description |
ComponentId | String | 05ab713c-676e-49c0-96ce-cc408da1**** | The ID of the component. You can use the ID as a request parameter in the API operation that is used to query components in a production studio. |
RequestId | String | 16A96B9A-F203-4EC5-8E43-CB92E68F4CD8 | The request ID. |
Examples
Sample requests
http(s)://live.aliyuncs.com/?Action=ModifyCasterComponent
&CasterId=LIVEPRODUCER_POST-cn-0pp1czt****
&ComponentId=05ab713c-676e-49c0-96ce-cc408da1****
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<ModifyCasterComponentResponse>
<ComponentId>05ab713c-676e-49c0-96ce-cc408da1****</ComponentId>
<RequestId>16A96B9A-F203-4EC5-8E43-CB92E68F4CD8</RequestId>
</ModifyCasterComponentResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"ComponentId" : "05ab713c-676e-49c0-96ce-cc408da1****",
"RequestId" : "16A96B9A-F203-4EC5-8E43-CB92E68F4CD8"
}
Error codes
For a list of error codes, see Service error codes.