getConfigurationOptions method

Future<PtzConfigurationOptions> getConfigurationOptions(
  1. String configurationToken
)

List supported coordinate systems including their range limitations. Therefore, the options MAY differ depending on whether the PTZ Configuration is assigned to a Profile containing a Video Source Configuration. In that case, the options may additionally contain coordinate systems referring to the image coordinate system described by the Video Source Configuration. If the PTZ Node supports continuous movements, it shall return a Timeout Range within which Timeouts are accepted by the PTZ Node.

ACCESS CLASS: READ_MEDIA

Implementation

Future<PtzConfigurationOptions> getConfigurationOptions(
    String configurationToken) async {
  loggy.debug('getConfigurationOptions');

  final responseEnvelope = await transport.securedRequest(
      uri,
      soap.Body(
        request: PtzRequest.getConfigurationOptions(configurationToken),
      ));

  if (responseEnvelope.body.hasFault) {
    throw Exception(responseEnvelope.body.fault.toString());
  }

  return GetConfigurationOptionsResponse.fromJson(
          responseEnvelope.body.response!)
      .ptzConfigurationOptions;
}