Startup
This commit is contained in:
@@ -77,7 +77,6 @@ public class Cameras extends Panel {
|
||||
try {
|
||||
//setCamera((String)comboCameras.getSelectedItem());
|
||||
if (App.hasArgument("cam")) {
|
||||
System.out.println("Setting camera:" + App.getArgumentValue("cam"));
|
||||
comboCameras.setSelectedItem(App.getArgumentValue("cam"));
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
@@ -168,7 +167,7 @@ public class Cameras extends Panel {
|
||||
}
|
||||
|
||||
void setCamera(String cameraName) throws IOException, InterruptedException {
|
||||
System.out.println("Setting camera:" + cameraName);
|
||||
System.out.println("Setting camera: " + cameraName);
|
||||
if (camera != null) {
|
||||
camera.close();
|
||||
camera = null;
|
||||
@@ -215,8 +214,8 @@ public class Cameras extends Panel {
|
||||
camera.getConfig().save();
|
||||
camera.initialize();
|
||||
|
||||
//camera.setMonitored(true);
|
||||
camera.setPolling(500);
|
||||
camera.setMonitored(true);
|
||||
camera.getDevice().setPolling(500);
|
||||
|
||||
renderer.setDevice(camera);
|
||||
renderer.setShowReticle(true);
|
||||
|
||||
Reference in New Issue
Block a user