Skip to content

NET_SDK_LivePlay

Interface Definition

1
2
3
4
5
POINTERHANDLE NET_SDK_LivePlay(
    LONG lUserID,
    LPNET_SDK_CLIENTINFO lpClientInfo,
    LIVE_DATA_CALLBACK fLiveDataCallBack = NULL,
    void* pUser = NULL);
1
2
3
4
5
public static extern POINTERHANDLE NET_SDK_LivePlay(
    Int32 lUserID,
    ref NET_SDK_CLIENTINFO lpClientInfo,
    LIVE_DATA_CALLBACK fLiveDataCallBack,
    IntPtr pUser);

Function Description

Real-time preview.

Parameter Description

Parameters Type Remark
lUserIDin LONG User ID, the return value of NET_SDK_Login or NET_SDK_LoginEx.
lpClientInfoin LPNET_SDK_CLIENTINFO For preview parameters, refer to LPNET_SDK_CLIENTINFO.
fLiveDataCallBackin LIVE_DATA_CALLBACK Preview data callback parameter, the default value is NULL, refer to LIVE_DATA_CALLBACK.
pUserin void* User-defined parameters.

Return Value

  • type:BOOL

  • remark:Returns TRUE if successful, FALSE if failed.

Remarks

After successfully calling this interface, if you need to capture real-time stream data, you can call the interface NET_SDK_SetLiveDataCallBack, NET_SDK_SetLiveDataCallBackEx or NET_SDK_SetYUVCallBack to register a callback function for capturing stream data, and process the callback stream data in the callback function.

Error Code