Flutter device selection and effects
Use mediasfu_sdk 2.4.4 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. On
Android and iOS, switchAudioOutput moves call audio between the loudspeaker
and the earpiece, preferring a connected Bluetooth headset; it has no effect on
web.
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 the Flutter SDK guide and Flutter media recovery.