isSupported property
bool
get
isSupported
Check if native virtual background is supported on this platform.
Supported platforms:
- Android: Has LocalVideoTrack.ExternalVideoFrameProcessing interface + MediaPipe
- iOS: Has VideoProcessingAdapter + Vision framework for segmentation
- macOS: Has VideoProcessingAdapter + Vision framework (requires macOS 12.0+)
- Windows/Linux: flutter_webrtc C++ layer lacks video processing hooks
- Web: Would need different approach (not native)
Implementation
static bool get isSupported {
if (kIsWeb) return false;
return Platform.isAndroid || Platform.isIOS || Platform.isMacOS;
}