Skip to main content
Version: 0.1.x

VideoSDK Class Events - Android

onAudioDeviceChanged()

  • This event will be emitted when an audio device, is connected to or removed from the device.

Example

VideoSDK.setAudioDeviceChangeListener(object : VideoSDK.AudioDeviceChangeEvent {
override fun onAudioDeviceChanged(
selectedAudioDevice: AudioDeviceInfo?,
audioDevices: MutableSet<AudioDeviceInfo>?
) {
Log.d(
"VideoSDK",
"Selected Audio Device: " + selectedAudioDevice.label
)
for (audioDevice in audioDevices) {
Log.d("VideoSDK", "Audio Devices" + audioDevice.label)
}
}
})

Got a Question? Ask us on discord


Was this helpful?