Cscore - running multiple cameras with MjpegServer object

Hi all -
We have been very successful in previous seasons running a Raspberry Pi as a camera vision server, and running cscore to serve robotcam video (similar to usbcvstream.cpp in the cscore examples).

This year, we’re considering using multiple cameras, and (besides putting everything on shuffleboard), I’d like to be able to bring up the streaming webpage and show not just one, but all the sources. For reference, here is the code that adds the camera:

cs::UsbCamera camera{“usbcam”, 0};
camera.SetVideoMode(cs::VideoMode::kMJPEG, 320, 240, 30);
cs::MjpegServer mjpegServer{“httpserver”, 8081};
mjpegServer.SetSource(camera);
cs::CvSink cvsink{“cvsink”};
cvsink.SetSource(camera);
cs::CvSource cvsource{“cvsource”, cs::VideoMode::kMJPEG, 320, 240, 30};
cs::MjpegServer cvMjpegServer{“cvhttpserver”, 8082};
cvMjpegServer.SetSource(cvsource);

Any thoughts on how to do this?
Thanks,
Rob

There’s nothing built into cscore to do that, the built-in camera stream webpages are 1:1 to the MjpegServer instances. What you can do, however, is make a simple HTML page on your desktop that links to each of the MJPEG streams. You’re basically making a HTML dashboard at that point.