Android Virtual Background Processor
Android implementation of VirtualBackgroundProcessor using ML Kit Selfie Segmentation.
This captures frames from WebRTC video, runs ML Kit segmentation to detect the person, composites the person with a virtual background, and outputs to a virtual video source.
Properties
Functions
Update the frame callback for preview while processing continues. This allows registering a preview callback when the processor is already running.
Start processing the input video stream with the given background.
Start processing with a WebRtcDevice to create a virtual output stream. This creates a new video source that receives processed frames and can be used with mediasoup to send to remote participants.
Stop processing and release resources.
Update the virtual background while processing continues.