Package io.agora.rtc2.video
Class VirtualBackgroundSource
java.lang.Object
io.agora.rtc2.video.VirtualBackgroundSource
Background substitude meta data.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int3: Background blur.static final int1: The background is a solid color(eg: Oxffffff).static final int2: Image source in PNG or JPG format.static final int0: Enable segementation with the captured video frame without replacing the background.static final int4: Video source in MP4, AVI, MKV, FLV format.intThe source type used to substitude capture image background.static final intblur degree high, blur default, hard to find backgroundstatic final intblur degree low, have few blur effectstatic final intblur degree medium, blur more than level 1intBackground blur degreeintBackground color value, for example: "#aabbcc"Background image file path -
Constructor Summary
ConstructorsConstructorDescriptionVirtualBackgroundSource(int backgroundSourceType, int color, String source, int blurDegree) -
Method Summary
-
Field Details
-
BACKGROUND_NONE
public static final int BACKGROUND_NONE0: Enable segementation with the captured video frame without replacing the background.- See Also:
-
BACKGROUND_COLOR
public static final int BACKGROUND_COLOR1: The background is a solid color(eg: Oxffffff).- See Also:
-
BACKGROUND_IMG
public static final int BACKGROUND_IMG2: Image source in PNG or JPG format.- See Also:
-
BACKGROUND_BLUR
public static final int BACKGROUND_BLUR3: Background blur. blur your background, not including your body.- See Also:
-
BACKGROUND_VIDEO
public static final int BACKGROUND_VIDEO4: Video source in MP4, AVI, MKV, FLV format.- See Also:
-
BLUR_DEGREE_LOW
public static final int BLUR_DEGREE_LOWblur degree low, have few blur effect- See Also:
-
BLUR_DEGREE_MEDIUM
public static final int BLUR_DEGREE_MEDIUMblur degree medium, blur more than level 1- See Also:
-
BLUR_DEGREE_HIGH
public static final int BLUR_DEGREE_HIGHblur degree high, blur default, hard to find background- See Also:
-
backgroundSourceType
public int backgroundSourceTypeThe 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.
-
color
public int colorBackground color value, for example: "#aabbcc" -
source
Background image file path -
blurDegree
public int blurDegreeBackground blur degree
-
-
Constructor Details
-
VirtualBackgroundSource
-
VirtualBackgroundSource
public VirtualBackgroundSource()
-