Closed daman-preet closed 11 months ago
Do you mean how to get it as working code? Could you try and see if following code snippet works?
// Filter out OTHER type which is currently not supported for selection
val audioDevices = meetingSession.audioVideo.listAudioDevices().filter {
it.type != MediaDeviceType.OTHER)
}.sortedBy { it.order }
val device = audioDevices.firstOfNull()
device?.let {meetingSession.audioVideo.chooseAudioDevice(it)}
How to write this code in android studio
// Filter out OTHER type which is currently not supported for selection val audioDevices = meetingSession.audioVideo.listAudioDevices().filter { it.type != MediaDeviceType.OTHER) } val device = / An item from audioDevices / meetingSession.audioVideo.chooseAudioDevice(device)