Skip to main content

startAudio()

Share microphone in the meeting

caution

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.

JavaScript
await meeting.startAudio()

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 startAudio() method.

chooseAudioInputDevice(deviceId) can be called anytime during the meeting to switch the microphone.

info

Browser will request user to allow microphone