Skip to content

NET_SDK_PTZTrack

Interface Definition

1
2
3
BOOL NET_SDK_PTZTrack(
    POINTERHANDLE lLiveHandle,
    DWORD dwPTZTrackCmd);
1
2
3
public static extern bool NET_SDK_PTZTrack(
    POINTERHANDLE lLiveHandle,
    int dwPTZTrackCmd);

Function Description

PTZ track operation (preview must be started first).

Parameter Description

Parameters Type Remark
lLiveHandlein POINTERHANDLE The preview handle, which is the return value of NET_SDK_LivePlay or NET_SDK_LivePlayEx.
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