setAudioDevice

Routes call audio to device and notifies the audio device listener. Works before join too. Unlike changeMic, a live microphone is not restarted.

Parameters

device

a route from VideoSDK.getMics.

Throws

3059 (ERROR_NO_MICROPHONE_DEVICE_FOUND, also reported on RoomEventListener.onError) when device is not one of the routes VideoSDK.getMics lists right now; routing is left untouched.