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, if the camera supports them: creates, removes or goes to the specified preset.

PresetAction can be "CREATE", "REMOVE" or "GOTO". PresetName can be any chosen name, however some cameras support only their own predefined preset names.

To create a preset, move the camera to the desired position with ONVIFPTZStartMove or ONVIFPTZSetPosition, then invoke ONVIFPTZPreset ("CREATE", ThePresetName) to save the current position to the specified preset. The camera can then be moved to this position when needed by invoking ONVIFPTZPreset ("GOTO", ThePresetName).