join() must be called before calling this method
Call this method to share the participant's microphone so that others can hear what the participant will say.
If there are multiple microphones in the participant's system and you want to share a specific one, for e.g if the user is on a laptop and has a built-in mic as well as a headphone connected.
Then you can use
listAudioInputDevices() to fetch the list of all microphones and then pass the
deviceId of the headphone to the
chooseAudioInputDevice(deviceId) method and then call the
chooseAudioInputDevice(deviceId) can be called anytime during the meeting to switch the microphone.
Browser will request user to allow microphone
Updated 3 months ago