Expo device selection and effects
Use mediasfu-reactnative-expo 2.6.2 room controls for camera and microphone switching and configured translation flows.
Camera and microphone switching
The package exposes MediaSettingsModal, switchVideoAlt, switchUserVideo,
switchUserVideoAlt, and switchUserAudio. For example:
import {switchVideoAlt} from 'mediasfu-reactnative-expo';
type CameraFlipOptions = Parameters<typeof switchVideoAlt>[0];
export function flipCamera(options: CameraFlipOptions) {
return switchVideoAlt(options);
}
Use the options from the active room. Change the microphone with
switchUserAudio; speaker and Bluetooth routes follow the platform's native
audio behavior.
Backgrounds and translation
The package's native React Native background processor is not supported. Keep
background effects out of the native UI; an effect that works on Expo web does
not mean native support. Use TranslationSettingsModal only when the room
is configured for translation.
Test Android, iOS, and web independently. Permission to open a camera does not mean remote media is delivered or translated audio plays. Keep a clear retry path for interruptions and device changes.
Continue with Expo room operations and Expo recovery.