Microsoft USB Camera on DashBoard

We have been trying to figure out how to use an HD Microsoft Camera on the SmartDashboard with Java but it doesn’t work. It only works when the SmartDashboard on Default.
The code we have for the Camera:

public void robotInit() {
new Thread(() -> {
UsbCamera camera = CameraServer.getInstance().startAutomaticCapture();
camera.setResolution(640, 480);
CvSink cvSink = CameraServer.getInstance().getVideo();
CvSource outputStream = CameraServer.getInstance().putVideo("Blur", 640,
Mat source = new Mat();
Mat output = new Mat();
while(true) {
Imgproc.cvtColor(source, output, Imgproc.COLOR_BGR2GRAY);

We got it from

Everything works perfectly well when we use Default.
Thanks in advance,

Have you tried disabling all firewalls and antivirus software?

We have now gotten the camera to display to the standard SmartDashboard, but we still cannot get it to display on SmartDashboard 2.0.

We can try disabling antivirus, but I doubt that is the root problem.

We got it to work by specifying the URL that it should be pulling from. I can’t remember exactly what it was but I think it was on a different port, I think we found it either somewhere on the old SmartDashboard or the NI one.