startVideo()
Share video in the meeting
caution
join() must be called before calling this method
Call this method to share the participant's camera so that others participants can see the user.
JavaScript
await meeting.startVideo()
If there are multiple cameras 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 camera as well as an external webcam.
Then you can use listVideoInputDevices()
to fetch the list of all cameras and then pass the deviceId
of the camera to the chooseVideoInputDevice(deviceId)
method and then call the startVideo()
method.
chooseVideoInputDevice(deviceId)
can be called anytime during the meeting to switch the camera.
info
Browser will request user to allow microphone