OpenSDK  V4.2.0
OpenNetStreamError.h
Go to the documentation of this file.
1 
12 #ifndef _H_OPENNETSTREAMERROR_H_
13 #define _H_OPENNETSTREAMERROR_H_
14 
15 #define OPEN_SDK_NOERROR 0
16 #define OPEN_SDK_GENERAL_ERROR -1
17 
18 
19 /******************************************************************************************************************/
20 /* The interface basically returns only 0 and -1 by default. If the interface returns -1, the explicit error code is passed through OpenSDK_GetLastErrorCode
21 Error code format {xbbbbb}, x said the error code that the value of x as follows:
30 */
31 /******************************************************************************************************************/
32 
33 //Network level error code
34 #define OPEN_SDK_NETWORK_SETUP_BASE 100000
35 #define OPEN_SDK_COULDNT_RESOLVE_HOST OPEN_SDK_NETWORK_SETUP_BASE + 6
36 #define OPEN_SDK_COULDNT_CONNECT OPEN_SDK_NETWORK_SETUP_BASE + 7
37 #define OPEN_SDK_OPERATION_TIMEOUT OPEN_SDK_NETWORK_SETUP_BASE + 28
38 
39 //User operation level error code
40 #define OPEN_SDK_USER_OPERATION_BASE 200000
41 #define OPEN_SDK_BAD_PARAMS OPEN_SDK_USER_OPERATION_BASE + 1
42 #define OPEN_SDK_SESSION_INVALID OPEN_SDK_USER_OPERATION_BASE + 2
43 #define OPEN_SDK_VIDEO_RECORD_NOT_EXIST OPEN_SDK_USER_OPERATION_BASE + 3
44 #define OPEN_SDK_VIDEO_RECORD_SEARCHING OPEN_SDK_USER_OPERATION_BASE + 4
45 #define OPEN_SDK_STOP_ALARM_REC_FAILED OPEN_SDK_USER_OPERATION_BASE + 5
46 #define OPEN_SDK_PERMANENT_KEY_INVALID OPEN_SDK_USER_OPERATION_BASE + 6
47 #define OPEN_SDK_PIC_DECRYPT_FAILED OPEN_SDK_USER_OPERATION_BASE + 7
48 #define OPEN_SDK_PIC_CONTENT_INVALID OPEN_SDK_USER_OPERATION_BASE + 8
49 #define OPEN_SDK_PIC_NO_NEED_DECRYPT OPEN_SDK_USER_OPERATION_BASE + 9
50 #define OPEN_SDK_PIC_COULDNT_ALLOC_BUFFERS OPEN_SDK_USER_OPERATION_BASE + 10
51 
52 //OpenApi interface level error code, detailed reference: https://open.ys7.com/doc/book/index/api-code.html
53 #define OPEN_SDK_OPENAPI_BASE 300000
54 #define OPEN_SDK_RESPINFO_BAD OPEN_SDK_OPENAPI_BASE + 1
55 #define OPEN_SDK_RESPINFO_INVALID OPEN_SDK_OPENAPI_BASE + 2
56 #define OPEN_SDK_DEVICE_RSP_TIMEOUT OPEN_SDK_OPENAPI_BASE + 2009
57 #define OPEN_SDK_DEVICE_SAFE_INVALID OPEN_SDK_OPENAPI_BASE + 5002
58 #define OPEN_SDK_ACCESSTOKEN_INVALID OPEN_SDK_OPENAPI_BASE + 10002
59 #define OPEN_SDK_APPKEY_NOMATCH_TOKEN_ERROR OPEN_SDK_OPENAPI_BASE + 10018
60 #define OPEN_SDK_USERID_PHONE_UNBIND OPEN_SDK_OPENAPI_BASE + 10014
61 #define OPEN_SDK_CHANNEL_NOT_EXIST OPEN_SDK_OPENAPI_BASE + 20001
62 #define OPEN_SDK_DEVICE_OFFLINE OPEN_SDK_OPENAPI_BASE + 20007
63 #define OPEN_SDK_USER_NOTOWN_DEVICE OPEN_SDK_OPENAPI_BASE + 20018
64 #define OPEN_SDK_SERVER_DATA_BAD OPEN_SDK_OPENAPI_BASE + 49999
65 #define OPEN_SDK_SERVER_ERROR OPEN_SDK_OPENAPI_BASE + 50000
66 
67 //System resource level error
68 #define OPEN_SDK_SYSTEM_RESOURCE_BASE 400000
69 #define OPEN_SDK_COULDNT_CREATE_THREAD OPEN_SDK_SYSTEM_RESOURCE_BASE + 1
70 #define OPEN_SDK_COULDNT_ALLOC_BUFFERS OPEN_SDK_SYSTEM_RESOURCE_BASE + 2
71 
72 
76 #define OPEN_SDK_STREAM_ACCESSTOKEN_ERROR_OR_EXPIRE "UE001"
77 #define OPEN_SDK_STREAM_PU_NO_RESOURCE "UE101"
78 #define OPEN_SDK_STREAM_TRANSF_DEVICE_OFFLINE "UE102"
79 #define OPEN_SDK_STREAM_INNER_TIMEOUT "UE103"
80 #define OPEN_SDK_STREAM_INNER_VERIFYCODE_ERROR "UE104"
81 #define OPEN_SDK_STREAM_PLAY_FAIL "UE105"
82 #define OPEN_SDK_STREAM_TRANSF_TERMINAL_BINDING "UE106"
83 #define OPEN_SDK_STREAM_VIDEO_RECORD_NOTEXIST "UE108"
84 #define OPEN_SDK_STREAM_VTDU_CONCURRENT_LIMIT "UE109"
85 #define OPEN_SDK_STREAM_UNSUPPORTED "UE110"
86 #define OPEN_SDK_STREAM_DEVICE_RETURN_ON_VIDEO_SOURCE "UE111"
87 
88 #endif //_H_OPENNETSTREAMERROR_H_