/
*Examples – Determine if a device is a dome device
*Examples – Determine if a device is a dome device
Configuration Article | CA-20220907-TP-80 VDG Sense | API | References |
To see if a device has some kind of PTZ control use the command getOptions. We need to do this for every device we’ve obtained with the command getDeviceList.
Get options
For this example we only inspect the device with the name “Dome”. We see that this device is a dome device and supports relative positioning.
Command url:
http://<server>/command?command=getOptions&serverid=7015498111931795223&deviceid=2 |
Result:
<result errorcode="0">
<options>
<positioning>
<pan>
<relative>true</relative>
<absolute>false</absolute>
<position>false</position>
<stop>true</stop>
</pan>
<tilt>
<relative>true</relative>
<absolute>false</absolute>
<position>false</position>
<stop>true</stop>
</tilt>
<zoom>
<relative>true</relative>
<absolute>false</absolute>
<position>false</position>
<stop>true</stop>
<auto>false</auto>
</zoom>
<focus>
<relative>true</relative>
<absolute>false</absolute>
<position>false</position>
<stop>true</stop>
<auto>true</auto>
</focus>
<iris>
<relative>true</relative>
<absolute>false</absolute>
<position>false</position>
<stop>false</stop>
<auto>true</auto>
</iris>
</positioning>
</options>
</result> |
, multiple selections available,
Related content
*getOptions
*getOptions
More like this
*Devices – PTZ settings
*Devices – PTZ settings
More like this
*setRelativePosition
*setRelativePosition
More like this
*setAbsolutePosition
*setAbsolutePosition
More like this
*holdPosition
*holdPosition
More like this
*Examples – Disable home preset
*Examples – Disable home preset
More like this