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_SetPlayDataCallBack

### Interface Definition

C++C#

    1
    2
    3
    4
    BOOL NET_SDK_SetPlayDataCallBack(
        POINTERHANDLE lPlayHandle,
        PLAY_DATA_CALLBACK fPlayDataCallBack,
        void* pUser);

    1
    2
    3
    4
    public static extern bool NET_SDK_SetPlayDataCallBack(
        POINTERHANDLE playHandle,
        PLAY_DATA_CALLBACK fPlayDataCallBack,
        IntPtr pUser);

### Function Description

Register the video playback callback function to capture the video data.

### Parameter Description

Parameters | Type | Remark
--- | --- | ---
lPlayHandlein | POINTERHANDLE | The playback handle, or the return value of `NET_SDK_PlayBackByTime` or `NET_SDK_PlayBackByTimeEx`.
fPlayDataCallBackin | `PLAY_DATA_CALLBACK` | Video recording data callback function.
pUserin | void* | User-defined parameters.

### Return Value

- Type：BOOL

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

### Remarks

None

Error Code