Skip to content
This SDK only works with devices released within the past 3 years. We regularly optimize and update the SDK to ensure compatibility and performance. We do not guarantee compatibility or provide technical support for devices older than 3 years.

# NET_SDK_PTZTrack_Other

### Interface Definition

C++C#

    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