Skip to content

IPCam Utility: Program Waits Forever #205

@ozymaxx

Description

@ozymaxx

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 :)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions