Skip to content

NET_SDK_PTZPreset_Other

Interface Definition

1
2
3
4
5
BOOL NET_SDK_PTZPreset_Other(
    LONG lUserID,
    LONG lChannel,
    DWORD dwPTZPresetCmd,
    DWORD dwPresetIndex);
1
2
3
4
5
public static extern bool NET_SDK_PTZPreset_Other(
    int lUserID,
    int lChannel,
    int dwPTZPresetCmd,
    int dwPresetIndex);

Function Description

PTZ preset point operation (no need to start preview).

Parameter Description

Parameters Type Remark
lUserIDin LONG User ID, the return value of NET_SDK_Login or NET_SDK_LoginEx.
lChannelin LONG Channel number, starting from 0. This parameter is invalid for IPC devices.
dwPTZPresetCmdin DWORD To operate the PTZ preset point command, refer to PTZ_CMD_TYPE.
dwPresetIndexin DWORD The serial number of the preset point supports up to 255 preset points.

Return Value

  • type:BOOL

  • remark:Returns TRUE if successful, FALSE if failed.

Remarks

The commands for various PTZ operations between the device and the PTZ correspond to the control codes between the device and the PTZ. The device will send control codes to the PTZ according to the currently set decoder type and decoder address. If the decoder currently set on the device does not match the PTZ device, the decoder of the device needs to be reconfigured. If the decoder required by the PTZ device is not supported by the device, it cannot be controlled using this interface.

Error Code