Prerequisites
- An active call session
- Access to the
CallSessioninstance
Get CallSession Instance
All audio control methods are called on theCallSession singleton:
- Kotlin
- Java
Mute Audio
Mute the local microphone. Other participants will no longer hear you.- Kotlin
- Java
When you mute your audio, the
onAudioMuted() callback is triggered on your MediaEventsListener.Unmute Audio
Unmute the local microphone to resume transmitting audio.- Kotlin
- Java
When you unmute your audio, the
onAudioUnMuted() callback is triggered on your MediaEventsListener.Set Audio Mode
Change the audio output device during a call. This allows users to switch between speaker, earpiece, Bluetooth, or headphones.- Kotlin
- Java
AudioMode Enum
When the audio mode changes, the
onAudioModeChanged(AudioMode) callback is triggered on your MediaEventsListener.Listen for Audio Events
Register aMediaEventsListener to receive callbacks when audio state changes:
- Kotlin
- Java
Initial Audio Settings
You can configure the initial audio state when joining a session usingSessionSettings:
- Kotlin
- Java
Next Steps
Video Controls
Control video during calls
Media Events Listener
Handle all media events