relativeMove method

Future<bool> relativeMove(
  1. String profileToken,
  2. PtzPosition move
)

Operation for Relative Pan/Tilt and Zoom Move. The operation is supported if the PTZNode supports at least one relative Pan/Tilt or Zoom space.

The speed argument is optional. If an x/y speed value is given it is up to the device to either use the x value as absolute resulting speed vector or to map x and y to the component speed. If the speed argument is omitted, the default speed set by the PtzConfiguration will be used.

Implementation

Future<bool> relativeMove(String profileToken, PtzPosition move) async {
  loggy.debug('relativeMove');

  final envelope = await transport.sendRequest(
      uri,
      transport
          .securedEnvelope(soap.PtzRequest.relativeMove(profileToken, move)));

  return envelope.body.response?.containsKey('RelativeMoveResponse') ?? false;
}