I have the camera assigned to the IP 10.0.20.11 (on team 20). I have it connected to my router, along with everything else. My web browser can open the stream, and I can see the feed in the dashboard just fine. However, I am having issues accessing the camera in my code. I get an instance of the camera, but the code stops running very soon after I get the instance. Here is the code I am using:
Code:
try {
camera = AxisCamera.getInstance();
for(int i=0;true;i++) {
System.out.println(i);
}
} catch (Exception e) {
e.printStackTrace();
}
The count reaches about 15, then stops. I switch modes or disable and re-enable, but the counter does not start again, and a reboot is needed. Once, I saw an error message saying the camera was not accessible. However, this was only once; normally I do not get any error message. Does anyone have any ideas on how to start diagnosing this issue? Thanks!