Audio Options
class AudioOptions(audioOutputType: AudioType?, audioHandler: AudioHandler?, audioDeviceModule: AudioDeviceModule?, javaAudioDeviceModuleCustomizer: (builder: JavaAudioDeviceModule.Builder) -> Unit?, disableCommunicationModeWorkaround: Boolean, audioProcessorOptions: AudioProcessorOptions?)
Content copied to clipboard
Options for customizing the audio settings of LiveKit.
Constructors
AudioOptions
Link copied to clipboard
fun AudioOptions(audioOutputType: AudioType? = null, audioHandler: AudioHandler? = null, audioDeviceModule: AudioDeviceModule? = null, javaAudioDeviceModuleCustomizer: (builder: JavaAudioDeviceModule.Builder) -> Unit? = null, disableCommunicationModeWorkaround: Boolean = false, audioProcessorOptions: AudioProcessorOptions? = null)
Content copied to clipboard
Properties
audioDeviceModule
Link copied to clipboard
audioHandler
Link copied to clipboard
audioOutputType
Link copied to clipboard
Override the default output AudioType.
audioProcessorOptions
Link copied to clipboard
disableCommunicationModeWorkaround
Link copied to clipboard
On Android 11+, the audio mode will reset itself from AudioManager.MODE_IN_COMMUNICATION if there is no audio playback or capture for 6 seconds (for example when joining a room with no speakers and the local mic is muted.) This mode reset will cause unexpected behavior when trying to change the volume, causing it to not properly change the volume.
javaAudioDeviceModuleCustomizer
Link copied to clipboard
val javaAudioDeviceModuleCustomizer: (builder: JavaAudioDeviceModule.Builder) -> Unit? = null
Content copied to clipboard
Sources
SDK source
Link copied to clipboard