Skip to content

ONVIFPTZPreset

function

Delphi
function ONVIFPTZPreset (PresetAction: string; PresetName: string): Boolean;
C++Builder
bool __fastcall ONVIFPTZPreset(System::UnicodeString PresetAction, System::UnicodeString PresetName);
C#
public bool ONVIFPTZPreset(string PresetAction, string PresetName);
VB.NET
Public Function ONVIFPTZPreset(PresetAction As String, PresetName As String) As Boolean
C++/Qt
BOOL ONVIFPTZPreset (wchar_t *PresetAction, wchar_t *PresetName);

Manages the presets: creates, removes or goes to the specified preset, if the camera supports the presets. PresetAction can be "CREATE", "REMOVE" or "DELETE". PresetName can be any chosen name, however some cameras support only their own predefined names of presets. To create a preset, move the camera to the desired position with ONVIFPTZStartContinuousMove or ONVIFPTZSetPosition, then invoke ONVIFPTZPreset ("CREATE", ThePresetName) to save the current position to the specified preset. Then the camera can be moved to this position when needed by invoking ONVIFPTZPreset ("GOTO", ThePresetName).