-
public final class VirtualBackgroundVideoFilter extends BitmapVideoFilterApplies a virtual background (custom image) to a video call.
-
-
Constructor Summary
Constructors Constructor Description VirtualBackgroundVideoFilter(Context context, Integer backgroundImage, Double foregroundThreshold)
-
Method Summary
Modifier and Type Method Description UnitapplyFilter(Bitmap videoFrameBitmap)-
-
Constructor Detail
-
VirtualBackgroundVideoFilter
VirtualBackgroundVideoFilter(Context context, Integer backgroundImage, Double foregroundThreshold)
- Parameters:
context- Context used to access resources.backgroundImage- The drawable resource ID of the custom background image.foregroundThreshold- The confidence threshold for the foreground.
-
-
Method Detail
-
applyFilter
Unit applyFilter(Bitmap videoFrameBitmap)
-
-
-
-