|
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_NONE = 0 |
| static final int | BACKGROUND_COLOR = 1 |
| static final int | BACKGROUND_IMG = 2 |
| static final int | BACKGROUND_BLUR = 3 |
| static final int | BACKGROUND_VIDEO = 4 |
| 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 |
0: Enable segementation with the captured video frame without replacing the background.
|
static |
1: The background is a solid color(eg: Oxffffff).
|
static |
2: Image source in PNG or JPG format.
|
static |
3: Background blur. blur your background, not including your body.
|
static |
4: Video source in MP4, AVI, MKV, FLV format.
|
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
1.8.18