Public Member Functions | |
VirtualBackgroundSource (int backgroundSourceType, int color, String source) | |
Public Attributes | |
int | backgroundSourceType |
int | color |
String | source = null |
Static Public Attributes | |
static final int | BACKGROUND_COLOR = 1 |
static final int | BACKGROUND_IMG = 2 |
The custom background image.
|
static |
1: (Default) The background image is a solid color.
|
static |
2: The background image is a file in PNG or JPG format.
int io.agora.rtc.video.VirtualBackgroundSource.backgroundSourceType |
The type of the custom background image:
int io.agora.rtc.video.VirtualBackgroundSource.color |
The color of the custom background image. The format is a hexadecimal integer defined by RGB, without the # sign, such as 0xFFB6C1 for light pink. The default value is 0xFFFFFF, which signifies white. The value range is [0x000000,0xffffff]. If the value is invalid, the SDK replaces the original background image with a white background image.
BACKGROUND_COLOR
. String io.agora.rtc.video.VirtualBackgroundSource.source = null |
The local absolute path of the custom background image. PNG and JPG formats are supported. If the path is invalid, the SDK replaces the original background image with a white background image.
BACKGROUND_IMG
.