文档中心>腾讯会议>开放平台文档>客户端 API>JSAPI 参考>UI>设置虚拟背景为模糊背景或空背景

设置虚拟背景为模糊背景或空背景

最近更新时间:2024-06-06 11:27:32

我的收藏

接口描述

描述:wemeet.ui.setVirtualBackgroundByType。
支持的版本:3.11.0
是否需要鉴权:虚拟背景设置

输入参数

参数名称
参数类型
参数描述
可选
backgroundType
String
BackgroundType.NULL:空背景
BackgroundType.BLUR:模糊背景
必填

代码示例

设置为空背景。
import as wemeet from '@tencent/wemeet-js-sdk';
const { BackgroundType } = wemeet.enums;
wemeet.ui.setWebModalAction({
backgroundType: BackgroundType.NULL,
}) .catch(e => console.error(e));