onvif
onvif copied to clipboard
ptz move zoom issue
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](https://user-images.githubusercontent.com/59721985/198133807-a33e47dc-4546-4aff-8929-405bc3ffa8b8.png)
I don't know if I'm missing something. Thanks for your help.
@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
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](https://user-images.githubusercontent.com/59721985/200344788-e41513c6-0d86-4349-8583-117153432666.png)