OpenSDK  V4.2.0
OpenNetStreamInterFace.h
Go to the documentation of this file.
1 
12 #ifndef _H_OPENNETSTREAMINTERFACE_H_
13 #define _H_OPENNETSTREAMINTERFACE_H_
14 
15 #include "OpenNetStreamDefine.h"
16 #include "OpenNetStreamError.h"
17 
18 #if defined (_WIN32) || defined(_WIN64)
19 #include <Windows.h>
20 #ifdef OPENNETSTREAM_EXPORTS
21 # define OPENSDK_API __declspec(dllexport)
22 #else
23 # define OPENSDK_API __declspec(dllimport)
24 #endif
25 #elif defined (OS_POSIX) || defined (__APPLE__) || defined(ANDROID) || defined (__linux__)
26 #include <cstdio>
27 # define OPENSDK_API
28 # define CALLBACK
29 
30 #if defined(__linux__)
31 typedef unsigned int HWND;
32 #else
33 typedef void* HWND;
34 #endif
35 
36 #else
37 # error os not support!
38 #endif
39 
40 #ifdef __cplusplus
41 extern "C" {
42 #endif
43 
70 typedef void (CALLBACK *OpenSDK_MessageHandler)(const char* szSessionId, unsigned int iMsgType, unsigned int iErrorCode,const char *pMessageInfo, void *pUser);
71 
88 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_InitLib(const char* szAuthAddr, const char* szPlatform, const char* szAppId);
89 
90 
91 
97 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_FiniLib();
98 
108 OPENSDK_API void CALLBACK OpenSDK_SetConfigInfo(ConfigKey iKey, const int iValue);
109 
114 OPENSDK_API void CALLBACK OpenSDK_SetPlatformAddr(const char* szPlatform);
115 
121 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_SetAppID(const char* szAppId);
122 
128 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_SetAccessToken(const char* szAccessToken);
129  // end of init
131 
145 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_AllocSessionEx(OpenSDK_MessageHandler pHandle, void* pUser, char** pSession, int* iSessionLen);
146 
153 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_FreeSession(const char* szSessionId);
154 
162 OPENSDK_API void CALLBACK OpenSDK_SetSessionConfig(const char* szSessionId, ConfigKey iKey, const int iValue);
163  // end of alloc
165 
177 typedef void (CALLBACK *OpenSDK_DataCallBack)(DataType enType, char* const pData, int iLen, void* pUser);
178 
186 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_SetDataCallBack(const char* szSessionId, OpenSDK_DataCallBack pDataCallBack, void* pUser);
187 
197 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_SetVideoLevel(const char* szDevSerial, const int iChannelNo, const int iVideoLevel);
198 
210 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_StartRealPlayEx(const char* szSessionId, HWND hPlayWnd, const char* szDevSerial, const int iChannelNo, const char* szSafeKey);
211 
224 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_StartPlayWithStreamType(const char* szSessionId, HWND hPlayWnd, const char* szDevSerial, const int iChannelNo, const char* szSafeKey, const int iStreamType);
225 
232 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_StopRealPlayEx(const char* szSessionId);
233  // end of play
235 
252 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_StartSearchEx(const char* szSessionId, const char* szDevSerial, const int iChannelNo, const char* szStartTime, const char* szStopTime);
253 
268 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_StartPlayBackEx(const char* szSessionId, HWND hPlayWnd, const char* szDevSerial, const int iChannelNo, const char* szSafeKey, const char* szStartTime, const char* szStopTime);
269 
278 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_PlayBackResume(const char* szSessionId);
279 
288 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_PlayBackPause(const char* szSessionId);
289 
296 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_StopPlayBackEx(const char* szSessionId);
297  // end of playback
299 
310 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_GetOSDTime(const char* szSessionId, STREAM_TIME *pTime);
311  // end of info
313 
324 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_OpenSound(const char* szSessionId);
325 
332 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_CloseSound(const char* szSessionId);
333 
340 OPENSDK_API unsigned short CALLBACK OpenSDK_GetVolume(const char* szSessionId);
341 
349 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_SetVolume(const char* szSessionId, unsigned short uVolume);
350  // end of sound
352 
366 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_StartVoiceTalkEx(const char* szSessionId, const char* szDevSerial, const int iChannelNo);
367 
374 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_StopVoiceTalk(const char* szSessionId);
375  // end of voice_talk
377 
386 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_CapturePicture(const char* szSessionId, const char* szFileName);
387 
398 OPENSDK_API void CALLBACK OpenSDK_SetLoginParams(LoginParamKey iKey, const char* szValue);
399 
406 OPENSDK_API const char* CALLBACK OpenSDK_GetLoginResponseParams(LoginParamKey iKey);
407 
412 OPENSDK_API void CALLBACK OpenSDK_Logout();
413 
421 OPENSDK_API int CALLBACK OpenSDK_Mid_Login( char** szAccessToken, int* iAccessTokenLen );
422 
428 OPENSDK_API int CALLBACK OpenSDK_Mid_Device_Add(const char* szAccessToken);
429 
436 OPENSDK_API int CALLBACK OpenSDK_Mid_Device_Oper(const char* szAccessToken, const char* szDeviceId);
437  // end of midpage
439 
505 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Data_GetDevListEx(int iPageStart, int iPageSize, void** pBuf, int* iLength);
506 
568 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Data_GetSharedDevList(int iPageStart, int iPageSize, void** pBuf, int* iLength);
569 
615 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Data_GetDevDetailInfo(const char* szDevSerial, const int iChannelNo, const bool bUpdate, void** pDevDetailInfo, int* iLength);
616 
650 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Data_GetDeviceInfo(const char* szAccessToken, const char* szDeviceSerial, void** pBuf, int* iLength);
651 
696 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Data_GetAlarmListEx(const char* szDevSerial, const int iChannelNo, const char* szStartTime, const char* szEndTime, AlarmType iAlarmType, int iStatus, int iPageStart, int iPageSize, void** pBuf, int* iLength);
697 
709 OPENSDK_API int CALLBACK OpenSDK_DecryptPicture(const char* szAccessToken, const char* szPicURL, const char* szSerail, const char* szSafeKey, void** pPicBuf, int* iPicLen);
710 
711 
712 
718 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Data_SetAlarmRead(const char* szAccessToken, const char* szAlarmId);
719 
726 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Data_DeleteDevice( const char* szAccessToken, const char* szDeviceId);
727 
733 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Data_Free(void* pBuf);
734  // end of data
736 
751 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_PTZCtrlEx(const char* szSessionId, const char* szDevSerial, const int iChannelNo, PTZCommand enCommand, PTZAction enAction, int iSpeed);
752 
763 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_DevDefenceEx(const char* szSessionId, const char* szDevSerial, const int iChannelNo, DefenceType enType, DefenceStatus enStatus, DefenceActor enActor);
764 
765  // end of device
767 
781 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_HttpSendWithWait(const char* szUri, const char* szHeaderParam, const char* szBody, char** pBuf, int* iLength); // end of util_tool
783 
834 typedef void (CALLBACK *OpenSDK_Push_MessageHandler)(const char* szDesc, const char* szContent, const char* szDetail, void* pUser);
835 
843 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Push_SetAlarmCallBack(OpenSDK_Push_MessageHandler pHandle, void* pUser);
844 
852 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Push_SetDeviceStatusCallBack(OpenSDK_Push_MessageHandler pHandle, void* pUser);
853 
863 
871 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Push_StartRecvEx(const char* szPushSecret);
872 
878 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Push_StopRecv();
879  // end of push
881 
891 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_GetAreaList(void** pBuf, int* iBufLen);
892 
930 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_GetDeviceDDNSList(int iPageStart, int iPageSize, void** pBuf, int* iBufLen);
931 
941 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_SetDeviceDDNSDomain(const char* szDevSerial, const char* szDomain);
942 
951 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_GetDeviceDDNSInfo(const char* szDevSerial, const char* szDomain, void** pBuf, int* iBufLen);
952 
959 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_SetDeviceDDNSAutoMapping(const char* szDevSerial);
960 
969 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_SetDeviceDDNSManualMapping(const char* szDevSerial, const int iCmdPort, const int iHttpPort);
970 
978 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_ShareDeviceDDNSInfo(const char* szDevSerial, const char* szAccount);
979 
989 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_GetShareDeviceDDNSList(int iPageStart, int iPageSize, void** pBuf, int* iBufLen);
990 
991 
992 
993  // end of ddns
995 
1004 OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_GetLastErrorCode();
1005 
1011 OPENSDK_API const char* CALLBACK OpenSDK_GetLastErrorDesc();
1012  // end of errorinfo
1014 
1015 
1016 #ifdef __cplusplus
1017 }
1018 #endif
1019 
1020 #endif
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_StopVoiceTalk(const char *szSessionId)
Stop Two-way audio.
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Data_GetAlarmListEx(const char *szDevSerial, const int iChannelNo, const char *szStartTime, const char *szEndTime, AlarmType iAlarmType, int iStatus, int iPageStart, int iPageSize, void **pBuf, int *iLength)
Get alarm list.
OPENSDK_API void CALLBACK OpenSDK_Logout()
Logout, match with the OpenSDK_Mid_Login API.
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_CloseSound(const char *szSessionId)
Turn off audio.
Open SDK error code definition.
OPENSDK_API void CALLBACK OpenSDK_SetLoginParams(LoginParamKey iKey, const char *szValue)
Set the login incoming parameters.
DataType
Data type of audio and video stream.
Definition: OpenNetStreamDefine.h:195
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_StartVoiceTalkEx(const char *szSessionId, const char *szDevSerial, const int iChannelNo)
Start Two-way audio, talking with multiple devices is not supported.
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...
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_SetDeviceDDNSAutoMapping(const char *szDevSerial)
This API is used to set device DDNS auto mapping mode by single device.
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_ShareDeviceDDNSInfo(const char *szDevSerial, const char *szAccount)
This API is used to Share DDNS information to other account by single device.
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_HttpSendWithWait(const char *szUri, const char *szHeaderParam, const char *szBody, char **pBuf, int *iLength)
Http Request API.
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Data_GetDeviceInfo(const char *szAccessToken, const char *szDeviceSerial, void **pBuf, int *iLength)
Get single device information.
OPENSDK_API void CALLBACK OpenSDK_SetPlatformAddr(const char *szPlatform)
The platform address is set up, and the address of the overseas platform is reset back...
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Push_SetTransparentChannelCallBack(OpenSDK_Push_MessageHandler pHandle, void *pUser)
Set device online/ offline notification.
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Data_GetSharedDevList(int iPageStart, int iPageSize, void **pBuf, int *iLength)
Get shared camera list.
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_StopPlayBackEx(const char *szSessionId)
Playback stopped.
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_DevDefenceEx(const char *szSessionId, const char *szDevSerial, const int iChannelNo, DefenceType enType, DefenceStatus enStatus, DefenceActor enActor)
Arm or disarm by Camera.
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_PTZCtrlEx(const char *szSessionId, const char *szDevSerial, const int iChannelNo, PTZCommand enCommand, PTZAction enAction, int iSpeed)
PTZ control.
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_GetDeviceDDNSList(int iPageStart, int iPageSize, void **pBuf, int *iBufLen)
This API is used to turn page to get the DDNS information of all the devices in the account...
ConfigKey
Config Type.
Definition: OpenNetStreamDefine.h:215
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_OpenSound(const char *szSessionId)
Turn on audio.
DefenceStatus
Arming and disarming status.
Definition: OpenNetStreamDefine.h:177
int OPENSDK_RESULT
Return value of OPEN SDK , return 0 on success, and return non-0 on failure.
Definition: OpenNetStreamDefine.h:18
void(CALLBACK * OpenSDK_Push_MessageHandler)(const char *szDesc, const char *szContent, const char *szDetail, void *pUser)
Alarm notification callback function.
Definition: OpenNetStreamInterFace.h:834
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_GetLastErrorCode()
Get the error code API.
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_FreeSession(const char *szSessionId)
Destroy SDk handle.
void(CALLBACK * OpenSDK_DataCallBack)(DataType enType, char *const pData, int iLen, void *pUser)
Data callback format.
Definition: OpenNetStreamInterFace.h:177
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_PlayBackPause(const char *szSessionId)
Playback paused.
PTZAction
PTZ operation command Normally, hold down the mouse to start, and realse the mouse to stop...
Definition: OpenNetStreamDefine.h:155
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_GetShareDeviceDDNSList(int iPageStart, int iPageSize, void **pBuf, int *iBufLen)
This API is used to turn page to get the DDNS information of all the shared devices in the current ac...
void(CALLBACK * OpenSDK_MessageHandler)(const char *szSessionId, unsigned int iMsgType, unsigned int iErrorCode, const char *pMessageInfo, void *pUser)
Message callback.
Definition: OpenNetStreamInterFace.h:70
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Data_GetDevListEx(int iPageStart, int iPageSize, void **pBuf, int *iLength)
Get camera list.
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_InitLib(const char *szAuthAddr, const char *szPlatform, const char *szAppId)
Initialize the library, support setting the system IP address.
OPENSDK_API int CALLBACK OpenSDK_Mid_Login(char **szAccessToken, int *iAccessTokenLen)
Login API.
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_StopRealPlayEx(const char *szSessionId)
Stop playing, asynchronous API. Return value only stands for operating succeeded, doesn't mean playin...
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Data_SetAlarmRead(const char *szAccessToken, const char *szAlarmId)
Set alarm information as read.
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_SetDeviceDDNSDomain(const char *szDevSerial, const char *szDomain)
This API is used to set the device DDNS domain, including the shared device's DDNS domain...
OPENSDK_API int CALLBACK OpenSDK_Mid_Device_Add(const char *szAccessToken)
Add device.
OPENSDK_API void CALLBACK OpenSDK_SetConfigInfo(ConfigKey iKey, const int iValue)
Global configuration information, according to ConfigKey configuration.
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_SetDeviceDDNSManualMapping(const char *szDevSerial, const int iCmdPort, const int iHttpPort)
This API is used to set device DDNS manual mapping mode by single device.
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Push_SetAlarmCallBack(OpenSDK_Push_MessageHandler pHandle, void *pUser)
Set alarm notification callback.
OPENSDK_API int CALLBACK OpenSDK_DecryptPicture(const char *szAccessToken, const char *szPicURL, const char *szSerail, const char *szSafeKey, void **pPicBuf, int *iPicLen)
Decrypt the alarm picture (calling encrypted picture and downloading unencrypted picture is suggested...
DefenceType
Arnming and disarming alarm type.
Definition: OpenNetStreamDefine.h:164
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_SetAppID(const char *szAppId)
Set APP ID.
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_StartPlayBackEx(const char *szSessionId, HWND hPlayWnd, const char *szDevSerial, const int iChannelNo, const char *szSafeKey, const char *szStartTime, const char *szStopTime)
Start playback, asynchronization API. Return value only stands for operating succeeded, doesn't mean playing succeeded. Judge the result via the message callback function msgid.
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Push_SetDeviceStatusCallBack(OpenSDK_Push_MessageHandler pHandle, void *pUser)
Set device online/ offline notification.
OPEN SDK get time format definition of OSD.
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Data_Free(void *pBuf)
Destroy the memory allocated by SDK.
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_SetAccessToken(const char *szAccessToken)
Set AccessToken.
LoginParamKey
Login the relevant parameter type.
Definition: OpenNetStreamDefine.h:204
AlarmType
Alarm type definition of OPEN SDK.
Definition: OpenNetStreamDefine.h:62
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_GetOSDTime(const char *szSessionId, STREAM_TIME *pTime)
Get OSD time.
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_CapturePicture(const char *szSessionId, const char *szFileName)
Capture, which is used when calling StartRealPlay succeeded (receive MsgId == INS_PLAY_START in the c...
PTZCommand
PTZ control command.
Definition: OpenNetStreamDefine.h:130
DefenceActor
Definition: OpenNetStreamDefine.h:185
OPENSDK_API void CALLBACK OpenSDK_SetSessionConfig(const char *szSessionId, ConfigKey iKey, const int iValue)
Configuring configuration information for Session, configured according to ConfigKey, before calling the stream.
OPENSDK_API unsigned short CALLBACK OpenSDK_GetVolume(const char *szSessionId)
Get volume.
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_SetVolume(const char *szSessionId, unsigned short uVolume)
Adjust volume.
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_StartSearchEx(const char *szSessionId, const char *szDevSerial, const int iChannelNo, const char *szStartTime, const char *szStopTime)
Search video files,including the video files stored in cloud storage and devide storage. Only supports searching by date. Asynchronous API. Return value only stands for operating succeeded, doesn't mean playing succeeded. Judge the result via the message callback function msgid.
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_PlayBackResume(const char *szSessionId)
Playback resumed.
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_FiniLib()
Anti-initialize the library.
OPENSDK_API const char *CALLBACK OpenSDK_GetLastErrorDesc()
Error Code Description.
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_SetDataCallBack(const char *szSessionId, OpenSDK_DataCallBack pDataCallBack, void *pUser)
Set data callback.
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_AllocSessionEx(OpenSDK_MessageHandler pHandle, void *pUser, char **pSession, int *iSessionLen)
Apply a session ID.
OPENSDK_API int CALLBACK OpenSDK_Mid_Device_Oper(const char *szAccessToken, const char *szDeviceId)
Operate device.
OPENSDK_API const char *CALLBACK OpenSDK_GetLoginResponseParams(LoginParamKey iKey)
Get the login parameters after logging in.
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Data_DeleteDevice(const char *szAccessToken, const char *szDeviceId)
Delete device.
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Data_GetDevDetailInfo(const char *szDevSerial, const int iChannelNo, const bool bUpdate, void **pDevDetailInfo, int *iLength)
Get device details, including preview level, PTZ, intercom capability level etc.
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Push_StartRecvEx(const char *szPushSecret)
Start receiving alarm.
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_GetDeviceDDNSInfo(const char *szDevSerial, const char *szDomain, void **pBuf, int *iBufLen)
This API is used to get the device DDNS information, including the shared device DDNS information...
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_GetAreaList(void **pBuf, int *iBufLen)
Get area list of all the nations. use in register.
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_Push_StopRecv()
Stop receiving alarm.
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_SetVideoLevel(const char *szDevSerial, const int iChannelNo, const int iVideoLevel)
Set or switch resolution.
Definition of OPEN SDK Data Structure.
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.