ModifyCasterComponent
修改导播台组件
服务地址:
华东2(上海)
输入参数
只看必填
CasterId导播台ID
ComponentId组件ID
ComponentName组件名称
ComponentType组件的类型
Effect组件显示的特效
ComponentLayerLayer的尺寸
TextLayerContentLayer元素属性
ImageLayerContentLayer元素属性
CaptionLayerContentLayer元素属性
插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

接口说明

调用本接口修改导播台组件。本接口目前支持的组件类型为文字组件、图片组件和翻译字幕组件。

QPS 限制

本接口的单用户 QPS 限制为 10 次/秒。超过限制,API 调用会被限流,这可能会影响您的业务,请合理调用。

请求参数

字段名称字段详情
CasterIdstring

导播台 ID。展开详情

示例值:LIVEPRODUCER_POST-cn-0pp1czt****参考取值来源:
    CopyCaster
    AddCasterLayout
    CreateCaster
    DescribeCasters
    SetCasterConfig
    ModifyCasterProgram
ComponentIdstring

组件 ID。如果您通过 AddCasterComponent 接口添加导播台组件,请查看 AddCasterComponent 接口调用返回的参数 ComponentId 值。

示例值:05ab713c-676e-49c0-96ce-cc408da1****参考取值来源:
    AddCasterComponent
    DescribeCasterComponents
ComponentNamestring

组件名称,默认为组件 ID。

示例值:text01参考取值来源:
    DescribeCasterComponents
ComponentTypestring

组件的类型。取值:展开详情

示例值:text参考取值来源:
    AddCasterComponent
    DescribeCasterComponents
Effectstring

组件显示的特效。取值:展开详情

示例值:animateV
ComponentLayerstring

Layer 的尺寸,布局等信息。格式为 JSON。设置元素说明如下:展开详情

示例值:{"HeightNormalized":"1","PositionRefer":"topRight","WidthNormalized":"0","PositionNormalized":["0.1","0.2"]}参考取值来源:
    AddCasterComponent
    DescribeCasterComponents
TextLayerContentstring

Layer 元素属性。格式为 JSON。元素属性说明如下:展开详情

示例值:{"BorderWidthNormalized":"1","SizeNormalized":"0.2","Color":"0x000000","FontName":"KaiTi","BorderColor":"0x000000","Text":"hello world!"}
ImageLayerContentstring

Layer 元素属性。格式为 JSON。展开详情

示例值:{"MaterialId":"6cf724c6ebfd4a59b5b3cec6f10d5ecf"}
CaptionLayerContentstring

Layer 元素属性。格式为 JSON。元素属性说明如下:展开详情

示例值:{"BorderWidthNormalized":0.01,"SizeNormalized":0.05,"Color":"0x000000","LocationId":"RV01","SourceLan":"cn","FontName":"KaiTi","BorderColor":"0xffffff"}

请求说明

导播台字体说明

字体FontName 取值
楷体KaiTi
阿里巴巴普惠体-常规AlibabaPuHuiTi-Regular
阿里巴巴普惠体-粗体AlibabaPuHuiTi-Bold
阿里巴巴普惠体-细体AlibabaPuHuiTi-Light
思源黑体-常规NotoSansHans-Regular
思源黑体-粗体NotoSansHans-Bold
思源黑体-细体NotoSansHans-Light

返回参数

字段名称字段详情
ComponentIdstring

组件 ID。可作为查询导播台组件列表的请求参数。

示例值:05ab713c-676e-49c0-96ce-cc408da1****
RequestIdstring

请求 ID。

示例值:16A96B9A-F203-4EC5-8E43-CB92E68F4CD8
变更历史
暂无变更历史