listVideoInputDevices()

Lists all the cameras the user has

Lists all the cameras connected to the user's device.

const videoInputDevices = await meeting.listVideoInputDevices()

videoInputDevices will be an Array, and would have the following properties.

Property

Description

deviceId

device id of the speaker, you would have to pass this value to chooseVideoInputDevice(deviceId)

groupId

If the device is part of a group, like a camera with a built-in microphone, then both would have the same groupId

label

Name of Camera, useful for displaying it to the user.

📘

Browser will request user to allow camera

Only in Firefox if "Remember this decision" checkbox is not checked then the label property would be blank.