Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ptz move zoom issue #268

Open
RicardoEmm opened this issue Oct 26, 2022 · 2 comments
Open

ptz move zoom issue #268

RicardoEmm opened this issue Oct 26, 2022 · 2 comments

Comments

@RicardoEmm
Copy link

RicardoEmm commented Oct 26, 2022

Hi, it's my first time working with onvif protocol and cctv. I had some issues when i try to do zoom with Avigilon h5a camera line.

image

I don't know if I'm missing something. Thanks for your help.

@agsh
Copy link
Owner

agsh commented Oct 27, 2022

@RicardoEmm, hi! As I can see, the problem can be in the code and this scope. Just try this:

const cam = new Cam({...yourConnectionOptions}, (err) => {
  cam.absoluteMove({ zoom: 0.8 }, (err, data, xml) => {
    console.log(err, data, xml);
    // here you can check the response from the camera, check if everything is ok
  });
})

And don't forget that absoluteMove command just starts the process of changing PTZ. So you don't know when the zoom will end

@RicardoEmm
Copy link
Author

Hi @agsh, with your code i can see the issues.
In relative and continuous move thow me a No such space error. I think that is 'cause this camera model only can do zoom.
But when i do an abdsoluteMove only sending the zoom value throw me this error.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants