Using multiple identical cameras

A developer had a question about how to manage multiple identical cameras connected to a Zoom Room. Here is an example, with two identical Logitech HD Pro Webcam C920 units:

Log in via SSH, and query the list of cameras:

zStatus Video Camera Line

You get back the info for the cameras:

*s Video Camera Line 1 id: \?\usb#vid_046d&pid_082d&mi_00#6&24768e37&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}{bbefb6c7-2fc4-4139-bb8b-a58bba724083}
*s Video Camera Line 1 Name: Logitech HD Pro Webcam C920
*s Video Camera Line 1 Alias: usb:046D:082D
*s Video Camera Line 1 Selected: on
*s Video Camera Line 1 manuallySelected: on
*s Video Camera Line 1 combinedDevice: off
*s Video Camera Line 1 numberOfCombinedDevices: 0
*s Video Camera Line 1 ptzComId: -1
*s Video Camera Line 2 id: \?\usb#vid_046d&pid_082d&mi_00#6&b70226a&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}{bbefb6c7-2fc4-4139-bb8b-a58bba724083}
*s Video Camera Line 2 Name: Logitech HD Pro Webcam C920
*s Video Camera Line 2 Alias: usb:046D:082D
*s Video Camera Line 2 Selected: off
*s Video Camera Line 2 manuallySelected: off
*s Video Camera Line 2 combinedDevice: off
*s Video Camera Line 2 numberOfCombinedDevices: 0
*s Video Camera Line 2 ptzComId: -1
** end
OK

The id of each camera is unique, and that is what you use to switch to that camera. In your UI, when you display the camera names, you need to detect if the Name parameter is the same for multiple cameras, and if so, append some kind of clarifying text to each camera name to differentiate them, such as “Logitech HD Pro Webcam C920 #1” and “Logitech HD Pro Webcam C920 #2”, and keep track of which id corresponds to which camera.

Launch a meeting:

zCommand Dial StartPmi Duration: 30

Then see which camera is used:

zConfiguration Video Camera selectedId

*c zConfiguration Video Camera selectedId: \?\usb#vid_046d&pid_082d&mi_00#6&24768e37&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}{bbefb6c7-2fc4-4139-bb8b-a58bba724083}
** end
OK

To switch to the other camera, enter the id for the other camera:

zConfiguration Video Camera selectedId: \?\usb#vid_046d&pid_082d&mi_00#6&b70226a&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}{bbefb6c7-2fc4-4139-bb8b-a58bba724083}

Then switch back to the original camera:

zConfiguration Video Camera selectedId: \?\usb#vid_046d&pid_082d&mi_00#6&24768e37&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}{bbefb6c7-2fc4-4139-bb8b-a58bba724083}

Then end the meeting:

zCommand call disconnect

Thanks Scott.

-Tommy