Virtual Background enables users to blur their background or replace it with a solid color or an image. This feature is applicable to scenarios such as online conferences, online classes, and live streaming. It helps protect personal privacy and reduces audience distraction.
This sample project shows you how to set:
- Blurred background
- Color background
- Image background
For context on this sample and a full explanation of the essential code snippets used in this project, read the Virtual Background document for your product of interest:
For the UI implementation of this example, refer to VirtualBackgroundActivity.kt
.
To see how to run this example, refer to the README in the root folder or one of the complete product guides.