Get "Supported" Zoom levels for Hikvision camera

Hi!

We have a Hikvision DS-2DE2A404IW-DE3 camera (using the ONVIF “driver”). We have noticed that, when trying to set the Zoom level (using SetPtzAbsolutePosition in the Config API), it only handles four zoom levels 0, 0.33, 0.67 and 1. So if for example current zoom level is 0 and we send in 0.2 the zoom level will not be changed, if we send in 0.4 it will be changed to 0.33.

My question is if it possible to detect this behaviour so we can handle it from our clients, like getting some meta data from Milestone VMS?

I suppose the main problem is the Hikvision ONVIF implementation/support.

Kind regards Hans Olausson

Hi Hans,

The only way to detect this behavior is to re-read the current absolute position after setting it and check whether the value has actually changed.

Ok, thanks, I will look in to that.

/Hans