Ptz class

Constructors

Ptz.new({required Onvif onvif, required String uri})

Properties

configurationCache Map<String, PtzConfiguration>
final
defaultPanTiltLimits PanTiltLimits?
getter/setter pair
defaultSpeed PtzSpeed?
getter/setter pair
defaultZoomLimits ZoomLimits?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
onvif Onvif
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uri String
final

Methods

absoluteMove(String profileToken, PtzPosition place, [PtzPosition? speed]) Future<void>
Operation to move pan,tilt or zoom to a absolute destination.
continuousMove(String profileToken, PtzPosition velocity, [int? timeout]) Future<void>
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.
getConfiguration(String profileToken) Future<PtzConfiguration>
Get a specific PTZconfiguration from the device, identified by its reference token or name.
getConfigurations() Future<List<PtzConfiguration>>
Get all the existing PTZConfigurations from the device.
getPresets(String profileToken) Future<List<Preset>>
Operation to request all PTZ presets for the Preset in the selected profile. The operation is supported if there is support for at least one PTZ preset by the Preset.
getStatus(String profileToken) Future<PtzStatus>
Operation to request PTZ status for the Node in the selected profile.
gotoPreset(String profileToken, Preset preset) Future<void>
Operation to go to a saved preset position for the Preset in the selected profile. The operation is supported if there is support for at least on PTZ preset by the Preset.
move(String profileToken, PanTilt direction) Future<void>
moveDown(String profileToken, [int step = 25]) Future<void>
A helper method to perform a single step of a relativeMove on the negative y axis (down)
moveLeft(String profileToken, [int step = 25]) Future<void>
A helper method to perform a single step of a relativeMove on the negative x axis (left)
moveRight(String profileToken, [int step = 25]) Future<void>
A helper method to perform a single step of a relativeMove on the positive x axis (right)
moveUp(String profileToken, [int step = 25]) Future<void>
A helper method to perform a single step of a relativeMove on the positive y axis (up)
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
relativeMove(String profileToken, PtzPosition move) Future<void>
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.
removePreset(String profileToken, Preset preset) Future<void>
Operation to remove a PTZ preset for the Node in the selected profile. The operation is supported if the PresetPosition capability exists for the Node in the selected profile.
setPreset(String profileToken, Preset preset) Future<String>
The setPreset command saves the current device position parameters so that the device can move to the saved preset position through the gotoPreset operation. In order to create a new Preset, the SetPresetRequest contains no PresetToken. If creation is successful, the Response contains the PresetToken which uniquely identifies the Preset. An existing Preset can be overwritten by specifying the PresetToken of the corresponding Preset. In both cases (overwriting or creation) an optional PresetName can be specified. The operation fails if the PTZ device is moving during the setPreset operation. The device may internally save additional states such as imaging properties in the PTZ Preset which then should be recalled in the gotoPreset operation.
stop(String profileToken, {bool panTilt = true, bool zoom = true}) Future<void>
Operation to stop ongoing pan, tilt and zoom movements of absolute relative and continuous type. If no stop argument for pan, tilt or zoom is set, the device will stop all ongoing pan, tilt and zoom movements.
toString() String
A string representation of this object.
inherited
zoom(String profileToken, Zoom zoom) Future<void>
zoomIn(String profileToken, [int step = 25]) Future<void>
A helper method to perform a single step of a relativeMove on the positive z axis (closer)
zoomOut(String profileToken, [int step = 25]) Future<void>
A helper method to perform a single step of a relativeMove on the negative y axis (farther)

Operators

operator ==(Object other) bool
The equality operator.
inherited