OpenSDK
V4.2.0
|
Typedefs | |
typedef void(CALLBACK * | OpenSDK_DataCallBack) (DataType enType, char *const pData, int iLen, void *pUser) |
Data callback format. More... | |
Functions | |
OPENSDK_API OPENSDK_RESULT CALLBACK | OpenSDK_SetDataCallBack (const char *szSessionId, OpenSDK_DataCallBack pDataCallBack, void *pUser) |
Set data callback. More... | |
OPENSDK_API OPENSDK_RESULT CALLBACK | OpenSDK_SetVideoLevel (const char *szDevSerial, const int iChannelNo, const int iVideoLevel) |
Set or switch resolution. More... | |
OPENSDK_API OPENSDK_RESULT CALLBACK | OpenSDK_StartRealPlayEx (const char *szSessionId, HWND hPlayWnd, const char *szDevSerial, const int iChannelNo, const char *szSafeKey) |
Start playing, asynchronous API. Return value only stands for operating succeeded, doesn't mean playing succeeded. Judge the result via the message callback function msgid. More... | |
OPENSDK_API OPENSDK_RESULT CALLBACK | OpenSDK_StartPlayWithStreamType (const char *szSessionId, HWND hPlayWnd, const char *szDevSerial, const int iChannelNo, const char *szSafeKey, const int iStreamType) |
Start playing with streamtype, asynchronous API. Return value only stands for operating succeeded, doesn't mean playing succeeded. Judge the result via the message callback function msgid. More... | |
OPENSDK_API OPENSDK_RESULT CALLBACK | OpenSDK_StopRealPlayEx (const char *szSessionId) |
Stop playing, asynchronous API. Return value only stands for operating succeeded, doesn't mean playing succeeded. Judge the result via the message callback function msgid. More... | |
typedef void(CALLBACK * OpenSDK_DataCallBack) (DataType enType, char *const pData, int iLen, void *pUser) |
Data callback format.
enType | Data type, see details in DataType |
pData | Data content |
iLen | Data length |
pUser | User-defined data |
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_SetDataCallBack | ( | const char * | szSessionId, |
OpenSDK_DataCallBack | pDataCallBack, | ||
void * | pUser | ||
) |
Set data callback.
[in] | szSessionId | Session ID |
[in] | pDataCallBack | Callback function |
[in] | pUser | User-defined data, which will be thrown out by pDataCallBack |
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_SetVideoLevel | ( | const char * | szDevSerial, |
const int | iChannelNo, | ||
const int | iVideoLevel | ||
) |
Set or switch resolution.
[in] | szDevSerial | Device serial No. |
[in] | iChannelNo | Device channel No. |
[in] | iVideoLevel | Vedio quality, enter a number ranging from 0 to 2 |
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_StartPlayWithStreamType | ( | const char * | szSessionId, |
HWND | hPlayWnd, | ||
const char * | szDevSerial, | ||
const int | iChannelNo, | ||
const char * | szSafeKey, | ||
const int | iStreamType | ||
) |
Start playing with streamtype, asynchronous API. Return value only stands for operating succeeded, doesn't mean playing succeeded. Judge the result via the message callback function msgid.
[in] | szSessionId | Session ID |
[in] | hPlayWnd | Display window handle, NULL stands for getting streaming only, no playback |
[in] | szDevSerial | Device serial No. |
[in] | iChannelNo | Device channel No. |
[in] | szSafeKey | Video encryption key. if video is not encrypted, set szsafekey as NULL |
[in] | iStreamType | streamtype 1-main stream, 2-substream, -1-default streamtype |
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_StartRealPlayEx | ( | const char * | szSessionId, |
HWND | hPlayWnd, | ||
const char * | szDevSerial, | ||
const int | iChannelNo, | ||
const char * | szSafeKey | ||
) |
Start playing, asynchronous API. Return value only stands for operating succeeded, doesn't mean playing succeeded. Judge the result via the message callback function msgid.
[in] | szSessionId | Session ID |
[in] | hPlayWnd | Display window handle, NULL stands for getting streaming only, no playback |
[in] | szDevSerial | Device serial No. |
[in] | iChannelNo | Device channel No. |
[in] | szSafeKey | Video encryption key. if video is not encrypted, set szsafekey as NULL |
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_StopRealPlayEx | ( | const char * | szSessionId | ) |
Stop playing, asynchronous API. Return value only stands for operating succeeded, doesn't mean playing succeeded. Judge the result via the message callback function msgid.
[in] | szSessionId | Session ID |