Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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>

  • No labels