You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, i'm trying to connect to an IPCam using your library, which seems fine but the following code segment waits us forever to connect to the IPCam, i cannot get any clue about the status of the connection.
The erroneous code is derived from the example code I found on your website, given below:
IpCamDevice ipcam = new B7210("B7210", "114.32.216.24");
ipcam.setAuth(new IpCamAuth("demo", "demo"));
ipcam.setSize(B7210.SIZE_QVGA);
IpCamDriver driver = new IpCamDriver();
driver.register(ipcam);
Webcam.setDriver(driver);
WebcamPanel panel = new WebcamPanel(Webcam.getDefault());
panel.setFPS(0.5); // 1 frame per 2 seconds
JFrame f = new JFrame("Night Tree Somewhere");
f.add(panel);
f.pack();
f.setVisible(true);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Then, I modified the first line, and I wrote the following code, which includes the problem I describe at the beginning of the post.
IpCamDevice ipcam = new IpCamDevice("asfsrsghyjtuy",
"http://139.179.202.29/", IpCamMode.PUSH, new IpCamAuth( "admin", "") );
IpCamDriver driver = new IpCamDriver();
driver.register(ipcam);
Webcam.setDriver(driver);
WebcamPanel panel = new WebcamPanel(Webcam.getDefault());
JFrame f = new JFrame("Night Tree Somewhere");
f.add(panel);
f.pack();
f.setVisible(true);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Thanks in advance, for your help :)
The text was updated successfully, but these errors were encountered:
This is why the image is not loading. However, I found a bug with the basic authenticator which seems to be problematic here as well, so even if you fix the code, it will not work as long as there is authentication required. But no worries :) You can use this JAR in exchange of the v0.3.10-RC6 IP camera driver you are using currently. The bug I described is already fixed here:
Hi, i'm trying to connect to an IPCam using your library, which seems fine but the following code segment waits us forever to connect to the IPCam, i cannot get any clue about the status of the connection.
The erroneous code is derived from the example code I found on your website, given below:
Then, I modified the first line, and I wrote the following code, which includes the problem I describe at the beginning of the post.
Thanks in advance, for your help :)
The text was updated successfully, but these errors were encountered: