chooseVideoInputDevice(deviceId)
Select/Change the user's camera
To select or change the camera 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 camera.
If this method is called after joining the meeting, the user's camera will be switched to the selected camera.
This method accepts deviceId
as a parameter. The deviceId
can be obtained from the listInputDevices()
method.
JavaScript
await meeting.chooseVideoInputDevice(deviceId);