接口描述
接口名:ui.setVirtualBackgroundByType
描述:设置虚拟背景的类型,模糊背景或空背景。
支持的客户端:iOS、Android、Windows、Mac。
支持的版本: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));