continuousMove method

Future<bool> continuousMove(
  1. String profileToken, {
  2. required PtzSpeed velocity,
  3. int? timeout,
})

Operation for continuous Pan/Tilt and Zoom movements. The operation is supported if the PTZNode supports at least one continuous Pan/Tilt or Zoom space. If the space argument is omitted, the default space set by the PtzConfiguration will be used.

ACCESS CLASS: ACTUATE

Implementation

Future<bool> continuousMove(
  String profileToken, {
  required PtzSpeed velocity,
  int? timeout,
}) async {
  loggy.debug('continuousMove');

  final responseEnvelope = await transport.securedRequest(
      uri,
      soap.Body(
        request: PtzRequest.continuousMove(
          profileToken,
          velocity: velocity,
          timeout: timeout,
        ),
      ));

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

  return true;
}