AudioOptions

class AudioOptions(audioOutputType: AudioType?, audioHandler: AudioHandler?, audioDeviceModule: AudioDeviceModule?, javaAudioDeviceModuleCustomizer: (builder: JavaAudioDeviceModule.Builder) -> Unit?, disableCommunicationModeWorkaround: Boolean, audioProcessorOptions: AudioProcessorOptions?)

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)

Properties

audioDeviceModule
Link copied to clipboard
val audioDeviceModule: AudioDeviceModule? = null
Override the default AudioDeviceModule.
audioHandler
Link copied to clipboard
val audioHandler: AudioHandler? = null
Override the default AudioHandler.
audioOutputType
Link copied to clipboard
val audioOutputType: AudioType? = null
Override the default output AudioType.
audioProcessorOptions
Link copied to clipboard
val audioProcessorOptions: AudioProcessorOptions? = null
Options for processing the mic and incoming audio.
disableCommunicationModeWorkaround
Link copied to clipboard
val disableCommunicationModeWorkaround: Boolean = false
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
Called after default setup to allow for customizations on the JavaAudioDeviceModule.

Sources

SDK source
Link copied to clipboard