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_PTZSetCruise

### Interface Definition

C++C#

    1
    2
    3
    4
    5
    BOOL NET_SDK_PTZSetCruise(
        POINTERHANDLE lLiveHandle,
        BYTE byCruiseRoute,
        DD_CRUISE_POINT_INFO* pCruisePoint,
        WORD pointNum);

    1
    2
    3
    4
    5
    public static extern bool NET_SDK_PTZSetCruise(
        POINTERHANDLE lLiveHandle,
        int byCruiseRoute,
        IntPtr pCruisePoint,
        int pointNum);

### Function Description

Set the PTZ cruise route (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`.
byCruiseRoutein | BYTE | Cruise route.
pCruisePointin | `DD_CRUISE_POINT_INFO`* | Cruising point.
pointNumin | WORD | Cruise points.

### Return Value

- Type：BOOL

- Remark：Returns TRUE if successful, FALSE if failed.

### Remarks

None

Error Code