Driver Station camera stream with two VisionPortal webcams

With two VisionPortal webcams how can I choose which camera’s images go to the Driver Station camera stream?

I found that the DS Camera Stream displays the last-built VisionPortal.

In quick testing, I simply changed the order of the Functions shown here with green arrows:

The webcam associated with the second-built portal is the one that displays in Camera Stream. This was repeatable through random changes and multiple cycles. The webcams were plugged directly into the USB 2.0 and USB 3.0 ports on the Control Hub.

This test OpMode is the one previously referred to you:




Actively switching or toggling the DS Camera Stream source is not currently offered in the FTC SDK. A simple solution would be a specialty OpMode to preview only the first-built portal in INIT.

Reminder, both previews are available simultaneously in the RC LiveView, before and after touching the START button, wirelessly via scrcpy.

1 Like

Sorry, but this is also an obligatory reminder that under rule RS09 you are not allowed to have a scrcpy session open at the competition field during an official event (it’s considered Out-of-Band Communications).

I mention this because we see teams every year who don’t understand this, and wanted this to not be a cause of surprise at an event for you.


Thanks, our testing showed the same results. We’ll go with a special OpMode and stay away from scrcpy and RS09.