Flutter device selection and effects
Use mediasfu_sdk 2.3.6 room controls to list and switch media inputs. The available background processing depends on the target platform.
List and switch inputs
import 'package:mediasfu_sdk/mediasfu_sdk.dart';
Future<void> chooseMicrophone(SwitchAudioOptions options) async {
await switchAudio(options);
}
Future<void> chooseCamera(SwitchVideoOptions options) async {
await switchVideo(options);
}
The package also exports getMediaDevicesList and MediaSettingsModal.
Pass the active room's options through the switch calls; preserve its producer
and consumer lifecycle instead of starting a parallel media engine.
Virtual backgrounds and translation
The supplied media-settings UI provides background controls on targets where the package can process video. Present a None option and return to the regular camera if processing cannot start. Do not assume identical behavior across Flutter's Android, iOS, web, and desktop targets.
The package root does not expose a complete app-owned translation workspace. Use the supplied room experience when translation is configured. Translation availability, languages, captions, translated audio, and retention depend on the room and application service.
Continue with Flutter room operations and Flutter media recovery.