你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

BackgroundReplacementEffect class

背景替换效果。

构造函数

BackgroundReplacementEffect(BackgroundReplacementConfig)

属性

name

效果的名称

方法

configure(BackgroundReplacementConfig)

更新效果配置的方法

isSupported()

检查是否支持效果的方法。

构造函数详细信息

BackgroundReplacementEffect(BackgroundReplacementConfig)

new BackgroundReplacementEffect(bgReplacementConfig: BackgroundReplacementConfig)

参数

bgReplacementConfig
BackgroundReplacementConfig

属性详细信息

name

效果的名称

name: VideoEffectName

属性值

方法详细信息

configure(BackgroundReplacementConfig)

更新效果配置的方法

function configure(newBgReplacementConfig: BackgroundReplacementConfig): Promise<void>

参数

newBgReplacementConfig
BackgroundReplacementConfig

返回

Promise<void>

isSupported()

检查是否支持效果的方法。

function isSupported(): Promise<boolean>

返回

Promise<boolean>

如果当前环境中支持效果,则为 true