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_PTZAutoScan

### Interface Definition

C++C#

    1
    2
    3
    4
    5
    BOOL NET_SDK_PTZAutoScan(
        POINTERHANDLE lLiveHandle,
        DWORD dwPTZAutoScanCmd,
        DWORD dwSpeed,
        BOOL bIsAutoScan = TRUE);

    1
    2
    3
    4
    5
    public static extern bool NET_SDK_PTZAutoScan(
        POINTERHANDLE lLiveHandle,
        int dwPTZAutoScanCmd,
        int dwSpeed,
        bool bIsAutoScan = true);

### Function Description

PTZ automatic scanning 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`.
dwPTZAutoScanCmdin | DWORD | To operate the PTZ automatic scanning command, refer to `PTZ_CMD_TYPE`.
dwSpeedin | DWORD | PTZ speed, refer to `PTZ_SPEED`.
bIsAutoScanin | BOOL | Whether to scan automatically. TRUE means automatic scanning, FALSE means random scanning.

### Return Value

- Type：BOOL

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

### Remarks

None

Error Code