ZegoBackgroundConfig class

Background config.

It is used to configure background when the object segmentation is turned on.

Constructors

ZegoBackgroundConfig(ZegoBackgroundProcessType processType, int color, String imageURL, String videoURL, ZegoBackgroundBlurLevel blurLevel)
ZegoBackgroundConfig.defaultConfig()
Constructs a background image configuration object by default.

Properties

blurLevel ZegoBackgroundBlurLevel
Background blur level.
getter/setter pair
color ↔ int
Background color, the format is 0xRRGGBB, default is black, which is 0x000000
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
imageURL ↔ String
Background image URL. Support local file absolute path (file://xxx). The format supports png, jpg.
getter/setter pair
processType ZegoBackgroundProcessType
Background process type.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
videoURL ↔ String
Background video URL. Caution: 1. The video will be played in a loop. 2. Support local file absolute path (file://xxx). 3. The format supports MP4, FLV, MKV, AVI. 4. The maximum resolution should not exceed 4096px, and it is recommended to be within 1920px. 5. The maximum video duration should not exceed 30 seconds, and it is recommended to be within 15 seconds. 6. The maximum video size should not exceed 50MB, and 10MB is recommended.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited