BackgroundModal

fun BackgroundModal(options: BackgroundModalOptions, modifier: Modifier = Modifier)

BackgroundModal - Modal for selecting virtual backgrounds.

This component provides an interface for selecting and applying virtual backgrounds during video calls, matching the React MediaSFU implementation.

Features:

  • Default preset images from MediaSFU (wall, shelf, clock, desert, flower)

  • Preset blur backgrounds with adjustable intensity

  • Preset color backgrounds

  • Custom image upload

  • Live camera preview with background applied

  • Platform compatibility checking

Platform Support:

  • ✅ Android: Full support via ML Kit Selfie Segmentation

  • ✅ iOS: Full support via ML Kit Selfie Segmentation

  • ❌ Web: Not supported (no ML Kit)