Skip to content

Hikvision - Exception: Invalid HTTP Reponse : Unauthorized #30

@stephanschulz

Description

@stephanschulz

I am trying to make this addon receive an HTPP mjpeg stream from a DS-2cd2343g0-ib Hikvision IP camera.

This works in the browser:
http://admin:[email protected]/ISAPI/Streaming/channels/102/httpPreview

But when doing this in the OF app

 grabber.setUsername("admin");
    grabber.setPassword("myPassword");
    grabber.setURI("http://192.168.1.64/ISAPI/Streaming/channels/102/httpPreview");

gives me this error:
[ error ] IPVideoGrabber: Exception : [http://192.168.1.64/ISAPI/Streaming/channels/102/httpPreview]: Exception: Invalid HTTP Reponse : Unauthorized

You addon has worked well in the pasted with Axis cameras. As long as i set them to allow anonymous users.
At this point i am not able to find a similar setting in the Hikvision portal.

I tried to replace the grabber.setUsername() method with the grabber.setCookie(); option but no luck.

I hope someone has any advice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions