Skip to content

NET_SDK_PTZTrack_Other

Interface Definition

1
2
3
4
BOOL NET_SDK_PTZTrack_Other(
    LONG lUserID,
    LONG lChannel,
    DWORD dwPTZTrackCmd);
1
2
3
4
public static extern bool NET_SDK_PTZTrack_Other(
    int lUserID,
    int lChannel,
    int dwPTZTrackCmd);

Function Description

PTZ track operation (no need to start preview first).

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.
dwPTZTrackCmdin DWORD To operate the PTZ trajectory command, refer to PTZ_CMD_TYPE.

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