View Single Post
  #6   Spotlight this post!  
Unread 10-01-2017, 15:22
blucoat blucoat is offline
Registered User
FRC #0069
 
Join Date: Dec 2015
Location: Quincy, MA
Posts: 3
blucoat is an unknown quantity at this point
Re: 2 Cameras Setup (Lifecam HD 3000)

Why is switching difficult? What's wrong with having two cameras and one mjpeg stream output:

Code:
VideoCamera cam0 = UsbCamera("Camera 0", 0);
VideoCamera cam1 = UsbCamera("Camera 1", 1);
MjpegServer server = new MjpegServer("Output to dashboard", 5800);
And switching between them using server.setSource()? We switched between two streams last year by modifying the CameraServer class, which worked fine. However, looking at the CSCore library, this seems like the "obvious" way to do it. I'm about to test this in a few hours, am I going to run into problems?
Reply With Quote