createVideoTransformerConfig method
Create a video frame transformer for the WebRTC pipeline.
This can be used with flutter_webrtc to process video frames before they are encoded and sent.
Note: This requires additional setup in the WebRTC configuration.
Implementation
Map<String, dynamic> createVideoTransformerConfig() {
return {
'type': 'virtualBackground',
'enabled': isReady && currentBackground?.type != BackgroundType.none,
'background': currentBackground?.toMap(),
};
}