logo
当前页

ZegoBackgroundConfig

ZegoBackgroundConfig

背景的配置。

详情

用于在开启主体分割时,配置背景。

Declared in entity/ZegoBackgroundConfig.java

属性

processType

processType
public ZegoBackgroundProcessType processType

背景处理类型。

color

color
public int color

背景颜色,格式为 0xRRGGBB,默认为黑色即 0x000000

imageURL

imageURL
public String imageURL

背景图路径。支持本地文件绝对路径 (file://xxx)。 格式支持 png、jpg。

videoURL

videoURL
public String videoURL
  • 注意事项:1. 视频将循环播放。2. 支持本地文件绝对路径 (file://xxx)。 3. 格式支持 MP4、FLV、MKV、AVI。4. 分辨率最大不超过4096px,推荐1920px以内。5. 视频时长最大不超过30秒,推荐15秒以内。6. 视频大小最大不超过50MB,推荐10MB以内。

blurLevel

blurLevel
public ZegoBackgroundBlurLevel blurLevel

背景虚化级别。

方法

ZegoBackgroundConfig

ZegoBackgroundConfig
Declared in entity/ZegoBackgroundConfig.java

上一篇

zegoautomixertask

下一篇

zegobarragemessageinfo

当前页

返回到顶部