ptzCapabilities bit mask
AnsweredI have a question about the Server API.
There is a ptzCapabilities attribute in getCamerasEx-> addParams.
I think ptzCapabilities seems to consist of a bit mask.
I want to know the meaning of this bit for the client application.
Thank you.
-
Official comment
Hi Paul,
Indeed in Server response to /ec2/getCamerasEx API request you can see "ptzCapabilitites" parameters for some cameras which is actually mask for different capabilities.
Any camera with non-zero value of "ptzCapabilities" has some PTZ functions available in Nx Witness a and can be ready to execute corresponding ptz commands.
Regarding actual values. Every value should be translated from decimal to a binary format. Every "1" bit means some kind of ptz capability.
Following this link you will find "ptz_caps.txt" file with the most significant bits associated with certain capabilities which can actually be invoked with public API commands.
Please contact me if you have more questions. -
Flags:
- NoPtzCapabilities = 0x00000000
- ContinuousPanCapability = 0x00000001 - can move with certain speed along horizontal axis
- ContinuousTiltCapability = 0x00000002 - can move with certain speed along vertical axis
- ContinuousZoomCapability = 0x00000004 - can zoom in/out with certain speed
- ContinuousFocusCapability = 0x00000008 - can focus in/out with certain speed
- AbsolutePanCapability = 0x00000010 - can move to a certain "x,y,z" coordinate with certain speed
- AbsoluteTiltCapability = 0x00000020
- AbsoluteZoomCapability = 0x00000040
- ViewportPtzCapability = 0x00000080 - advanced ptz feature, draw rectangle in client to move there
- PresetsPtzCapability = 0x00010000 - presets are kept in Media Server database
- ToursPtzCapability = 0x00020000 - camera has ptz tours
- NativePresetsPtzCapability = 0x08000000 - presets are kept on Camera side
0 -
Thank you for your answer.
0
Please sign in to leave a comment.
Comments
3 comments