Skip to main content
The CometChat Calls SDK supports multiple audio output modes on mobile devices. Users can switch between speaker, earpiece, Bluetooth, and wired headphones.

Available Audio Modes

Set Default Audio Mode

Configure the default audio mode when creating call settings:

Show Audio Mode Button

Enable the audio mode button in the call UI:

Listen for Audio Mode Changes

Subscribe to audio mode change events:

Audio Mode Object

When receiving audio mode updates, each mode object contains:

Complete Example

Platform Considerations

iOS

  • Audio mode switching is handled automatically by iOS based on connected devices
  • Bluetooth devices appear when connected
  • Headphones are detected when plugged in

Android

  • Requires MODIFY_AUDIO_SETTINGS permission
  • Bluetooth requires BLUETOOTH and BLUETOOTH_CONNECT permissions
  • Audio routing may vary by device manufacturer