onAudioDeviceChanged

abstract fun onAudioDeviceChanged(selectedAudioDevice: MicrophoneDeviceInfo?, audioDevices: List<MicrophoneDeviceInfo>)

Called whenever the device list or the active selection changes, and once immediately on registering — so the first call is the current state, not a change.

Parameters

selectedAudioDevice

the route in use, or null only when no audio route is available, which is always the case before VideoSDK.initialize. With routes present the SDK picks a default rather than report nothing.

audioDevices

everything currently available, the selected one included.