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.

# YUV_DATA_CALLBACK

### Callback Definition

    1
    void YUV_DATA_CALLBACK(POINTERHANDLE lLiveHandle, DECODE_FRAME_INFO frameInfo, void* pUser);

### Function Description

Callback for decoded YUV data when real-time preview data is captured.

### Parameter Description

Parameters | Type | Remark
--- | --- | ---
lLiveHandlein | POINTERHANDLE | The preview handle, which is the return value of `NET_SDK_LivePlay` or `NET_SDK_LivePlayEx`.
frameInfoin | `DECODE_FRAME_INFO` | Real-time preview of YUV data after data frame decoding.
pUserin | void* | User-defined parameters are passed in when setting the callback function.

### Return Value

None

### Remarks

None

Error Code