React Native device selection and effects
Use mediasfu-reactnative 2.4.5 room controls for camera switching and the supported background and translation experiences.
Camera switching
Use MediaSettingsModal for supplied controls. The package exports
switchVideoAlt to flip the front/back camera and switchUserVideo /
switchUserVideoAlt for its selected-camera flows:
import {switchVideoAlt} from 'mediasfu-reactnative';
type CameraFlipOptions = Parameters<typeof switchVideoAlt>[0];
export function flipCamera(options: CameraFlipOptions) {
return switchVideoAlt(options);
}
Pass the current room options. The package root does not publish a microphone device-selection helper; Bluetooth, wired-headset, and speaker routing are owned by the native audio system.
Backgrounds and translation
The supplied BackgroundModal and TranslationSettingsModal are room UI
surfaces. Native virtual-background processing is not supported by this
package; do not show an enabled native effect control. Translation controls
apply only to rooms configured for translation.
Test permissions, camera changes, interruptions, and audio routing on physical Android and iOS devices. Keep device failure recoverable and avoid promising translated playback unless the configured room and target device have been verified.
Continue with React Native room operations and React Native recovery.