Skip to main content
Control audio output routing during calls. Switch between speaker, earpiece, and Bluetooth based on user preference or device availability.

Available Audio Modes

Set Initial Audio Mode

Configure the audio mode when joining a session:

Change Audio Mode During Call

Switch audio modes dynamically during an active call:

Listen for Audio Mode Changes

Monitor audio mode changes using MediaEventsListener:
Flutter listeners are not lifecycle-aware. You must manually remove the media events listener in your widget’s dispose() method to prevent memory leaks.

Hide Audio Mode Button

To prevent users from changing the audio mode, hide the button in the call UI:
The SDK automatically detects connected audio devices. If a Bluetooth device is connected, it becomes available as an audio mode option.