*getOptions
Configuration Article | CA-20220907-TP-12 VDG Sense | API | Functions | Camera Control |
Returns the camera possibilities for the positioning options: pan, tilt, zoom, focus and iris. And returns a list with the preset names.
Relative true means the camera supports the parameter with the command setRelativePosition
Absolute true means the camera supports the parameter with the command setAbsolutePosition.
Position true means the camera supports the parameter with the command getPosition.
Stop true means the camera supports the parameter with the command holdPosition.
Auto true means the camera supports the parameter with the command setAbsolutePosition.
This command always return the available options, even when the device is not a dome. In that case, instead of returning a ‘No Dome’ message, this command will return the results with all positioning values false.
Request
command=getOptions&serverid=[UID]&cameraid=[UID] |
parameter | type | remarks |
---|---|---|
serverid | [UID] | unique server id. |
cameraid | [UID] | unique camera id |
Response
<result errorcode="0">
  <options>
    <positioning>
      <pan>...</pan>
      <tilt>...</tilt>
      <zoom>...</zoom>
      <focus>...</focus>
      <iris>...</iris>
    </positioning>
    <presets count>
      <presets number>...</presets number>
    </presets count>
 ...
 </options>
 </result> |
node | value | remarks | Â |
---|---|---|---|
/result | Â | ||
@errorcode | [number] | See error codes below | Â |
/result/positioning | Â | ||
pan | [false | true] | Â options for relative, absolute, position and stop |
tilt | [false | true] | Â options for relative, absolute, position and stop |
zoom | [false | true] | Â options for relative, absolute, position, stop and auto |
focus | [false | true] | Â options for relative, absolute, position, stop and auto |
iris | [false | true] | Â options for relative, absolute, position, stop and auto |
/result/presets | Â | ||
@count | [number] | Â The number of presets | Â |
/result/presets/preset* | Â | ||
@number | [number] | Â The index number of the preset | Â |
 | [string] | The value of the preset |  |
error code | description | remarks |
---|---|---|
0 | Ok | Ok, no error |
-2 | No device | Â No device found for the supplied cameraid/deviceid |
-18 | General error | An undefined error occured |
Â