chooseAudioInputDevice(deviceId)
Select/Change the user's microphone
To select or change the microphone call this method.
This method can be called anytime.
If this method is called before joining the meeting i.e before calling the join()
method, then the user will join the meeting with the selected microphone.
If this method is called after joining the meeting, the user's microphone will be switched to the selected microphone.
This method accepts deviceId
as a parameter. The deviceId
can be obtained from the listInputDevices()
method.
JavaScript
await meeting.chooseAudioInputDevice(deviceId);