Skip to main content

listVideoInputDevices()

Lists all the cameras the user has

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

JavaScript
const videoInputDevices = await meeting.listVideoInputDevices()

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

PropertyDescription
deviceIddevice id of the speaker, you would have to pass this value to chooseVideoInputDevice(deviceId)
groupIdIf the device is part of a group, like a camera with a built-in microphone, then both would have the same groupId
labelName of Camera, useful for displaying it to the user.
info

Browser will request user to allow camera

select camera

cameraSelection

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