Agora Java API Reference for Android
|
Public Member Functions | |
VirtualBackgroundSource (int backgroundSourceType, int color, String source, int blurDegree) | |
Public Attributes | |
int | backgroundSourceType |
int | color |
String | source = null |
int | blurDegree |
Static Public Attributes | |
static final int | BACKGROUND_COLOR = 1 |
static final int | BACKGROUND_IMG = 2 |
static final int | BACKGROUND_BLUR = 3 |
static final int | BLUR_DEGREE_LOW = 1 |
static final int | BLUR_DEGREE_MEDIUM = 2 |
static final int | BLUR_DEGREE_HIGH = 3 |
Background substitude meta data.
|
static |
1: Background source is hex color string.
|
static |
2: Background source is image path, only support png format.
|
static |
3: Background blur. blur your background, not including your body.
|
static |
blur degree low, have few blur effect
|
static |
blur degree medium, blur more than level 1
|
static |
blur degree high, blur default, hard to find background
int io.agora.rtc2.video.VirtualBackgroundSource.backgroundSourceType |
The source type used to substitude capture image background. {backgroundSourceType}: BACKGROUND_NONE(0): background is none. BACKGROUND_COLOR(1): (default) background is color. {BACKGROUND_IMG(2)}: background is image.
int io.agora.rtc2.video.VirtualBackgroundSource.color |
Background color value, for example: "#aabbcc"
String io.agora.rtc2.video.VirtualBackgroundSource.source = null |
Background image file path
int io.agora.rtc2.video.VirtualBackgroundSource.blurDegree |
Background blur degree