onvif icon indicating copy to clipboard operation
onvif copied to clipboard

ptz move zoom issue

Open RicardoEmm opened this issue 1 year ago • 2 comments

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.

RicardoEmm avatar Oct 26 '22 19:10 RicardoEmm

@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

agsh avatar Oct 27 '22 07:10 agsh

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

RicardoEmm avatar Nov 07 '22 15:11 RicardoEmm