VideoBackgroundReplacementEffect interface
包含所选替换视频背景效果的属性
属性
| effect |
替换视频背景效果的效果名称 |
| key | 用于自定义背景唯一标识的键 |
继承属性
| background |
背景图像的 URL |
| effect |
触发 'timeForEffectsWarningReached' 事件之前的等待时间(以 MS 为单位)。 默认值 - 20000 |
| fps |
触发“fpsWarningThresholdReached”事件之前的最小 fps 阈值。 默认值 - 5 |
属性详细信息
effectName
替换视频背景效果的效果名称
effectName: "replacement"
属性值
"replacement"
key
用于自定义背景唯一标识的键
key?: string
属性值
string
继承属性详细信息
backgroundImageUrl
背景图像的 URL
backgroundImageUrl: string
属性值
string
继承自 BackgroundReplacementConfig.backgroundImageUrl
effectInitTimeThresholdInMs
触发 'timeForEffectsWarningReached' 事件之前的等待时间(以 MS 为单位)。 默认值 - 20000
effectInitTimeThresholdInMs?: number
属性值
number
继承自 BackgroundReplacementConfig.effectInitTimeThresholdInMs
fpsWarningThreshold
触发“fpsWarningThresholdReached”事件之前的最小 fps 阈值。 默认值 - 5
fpsWarningThreshold?: number
属性值
number
继承自 BackgroundReplacementConfig.fpsWarningThreshold