How to use USB Cam

We are using (or at least trying to) a Microsoft Lifecam-3000, and had it working semi-functionally last year, but last years code will not work this year. I checked the RIO and the camera name is “cam0” if that matters this year. I already checked the wpi link: http://wpilib.screenstepslive.com/s/4485/m/24194/l/288981-using-the-microsoft-lifecam-hd-3000

I’m not trying for any vision processing on this camera, just to be able to stream from SmartDashboard. I’m not sure if there is a code component or if I just need to do something in SmartDash. Can anyone help?

Put:

UsbCamera camera = CameraServer.getInstance().startAutomaticCapture();
camera.setResolution(640, 480);

In addition to this, in the SmartDashboard, click ‘Add’ then ‘Camera Stream viewer’.