浏览该文件的文档.
12 #ifndef _H_OPENNETSTREAMERROR_H_
13 #define _H_OPENNETSTREAMERROR_H_
15 #define OPEN_SDK_NOERROR 0
16 #define OPEN_SDK_GENERAL_ERROR -1
18 #define OPEN_SDK_BASE 10000
19 #define OPEN_SDK_JSON_ERROR OPEN_SDK_BASE + 1
20 #define OPEN_SDK_ERROR OPEN_SDK_BASE + 2
21 #define OPEN_SDK_DEV_NO_SUPPORT OPEN_SDK_BASE + 3
22 #define OPEN_SDK_ALLOC_ERROR OPEN_SDK_BASE + 4
23 #define OPEN_SDK_PARAM_ERROR OPEN_SDK_BASE + 5
24 #define OPEN_SDK_SAFE_KEY_ERROR OPEN_SDK_BASE + 6
25 #define OPEN_SDK_SEARCHING_ERROR OPEN_SDK_BASE + 7
26 #define OPEN_SDK_SYNC_ERROR OPEN_SDK_BASE + 8
27 #define OPEN_SDK_INTERFACE_NO_IMPL OPEN_SDK_BASE + 9
28 #define OPEN_SDK_ORDER_ERROR OPEN_SDK_BASE + 10
29 #define OPEN_SDK_SESSION_EXPIRED OPEN_SDK_BASE + 11
46 #define OPEN_SDK_NETWORK_SETUP_BASE 100000
47 #define OPEN_SDK_COULDNT_RESOLVE_HOST OPEN_SDK_NETWORK_SETUP_BASE + 6
48 #define OPEN_SDK_COULDNT_CONNECT OPEN_SDK_NETWORK_SETUP_BASE + 7
49 #define OPEN_SDK_OPERATION_TIMEOUT OPEN_SDK_NETWORK_SETUP_BASE + 28
52 #define OPEN_SDK_USER_OPERATION_BASE 200000
53 #define OPEN_SDK_BAD_PARAMS OPEN_SDK_USER_OPERATION_BASE + 1
54 #define OPEN_SDK_SESSION_INVALID OPEN_SDK_USER_OPERATION_BASE + 2
55 #define OPEN_SDK_VIDEO_RECORD_NOT_EXIST OPEN_SDK_USER_OPERATION_BASE + 3
56 #define OPEN_SDK_VIDEO_RECORD_SEARCHING OPEN_SDK_USER_OPERATION_BASE + 4
57 #define OPEN_SDK_STOP_ALARM_REC_FAILED OPEN_SDK_USER_OPERATION_BASE + 5
58 #define OPEN_SDK_PERMANENT_KEY_INVALID OPEN_SDK_USER_OPERATION_BASE + 6
59 #define OPEN_SDK_PIC_DECRYPT_FAILED OPEN_SDK_USER_OPERATION_BASE + 7
60 #define OPEN_SDK_PIC_CONTENT_INVALID OPEN_SDK_USER_OPERATION_BASE + 8
61 #define OPEN_SDK_PIC_NO_NEED_DECRYPT OPEN_SDK_USER_OPERATION_BASE + 9
62 #define OPEN_SDK_PIC_COULDNT_ALLOC_BUFFERS OPEN_SDK_USER_OPERATION_BASE + 10
63 #define OPEN_SDK_SDK_LOAD_FAILED OPEN_SDK_USER_OPERATION_BASE + 11
66 #define OPEN_SDK_OPENAPI_BASE 300000
67 #define OPEN_SDK_RESPINFO_BAD OPEN_SDK_OPENAPI_BASE + 1
68 #define OPEN_SDK_RESPINFO_INVALID OPEN_SDK_OPENAPI_BASE + 2
69 #define OPEN_SDK_DEVICE_RSP_TIMEOUT OPEN_SDK_OPENAPI_BASE + 2009
70 #define OPEN_SDK_DEVICE_SAFE_INVALID OPEN_SDK_OPENAPI_BASE + 5002
71 #define OPEN_SDK_ACCESSTOKEN_INVALID OPEN_SDK_OPENAPI_BASE + 10002
72 #define OPEN_SDK_SIGNATURE_ERROR OPEN_SDK_OPENAPI_BASE + 10008
73 #define OPEN_SDK_APPKEY_NOMATCH_TOKEN_ERROR OPEN_SDK_OPENAPI_BASE + 10018
74 #define OPEN_SDK_USERID_PHONE_UNBIND OPEN_SDK_OPENAPI_BASE + 10014
75 #define OPEN_SDK_CHANNEL_NOT_EXIST OPEN_SDK_OPENAPI_BASE + 20001
76 #define OPEN_SDK_DEVICE_OFFLINE OPEN_SDK_OPENAPI_BASE + 20007
77 #define OPEN_SDK_USER_NOTOWN_DEVICE OPEN_SDK_OPENAPI_BASE + 20018
78 #define OPEN_SDK_SERVER_DATA_BAD OPEN_SDK_OPENAPI_BASE + 49999
79 #define OPEN_SDK_SERVER_ERROR OPEN_SDK_OPENAPI_BASE + 50000
82 #define OPEN_SDK_SYSTEM_RESOURCE_BASE 400000
83 #define OPEN_SDK_COULDNT_CREATE_THREAD OPEN_SDK_SYSTEM_RESOURCE_BASE + 1
84 #define OPEN_SDK_COULDNT_ALLOC_BUFFERS OPEN_SDK_SYSTEM_RESOURCE_BASE + 2
87 #define OPEN_SDK_NOT_SUPPORT_BASE 600000
88 #define OPEN_SDK_DEV_NOT_SUPPORT OPEN_SDK_NOT_SUPPORT_BASE + 1
89 #define OPEN_SDK_API_NO_IMPLEMENT OPEN_SDK_NOT_SUPPORT_BASE + 2
92 #define OPEN_SDK_PUSH_BASE 700000
93 #define OPEN_SDK_PUSH_PARAM_ERROR OPEN_SDK_PUSH_BASE + 10001
94 #define OPEN_SDK_PUSH_DATA_UNINIT_ERROR OPEN_SDK_PUSH_BASE + 10002
95 #define OPEN_SDK_PUSH_NO_REGISTER_ERROR OPEN_SDK_PUSH_BASE + 10003
96 #define OPEN_SDK_PUSH_NO_MQTT_CREATE_ERROR OPEN_SDK_PUSH_BASE + 10004
98 #define OPEN_SDK_PUSH_MQTT_DISCONNECTED_ERROR OPEN_SDK_PUSH_BASE + 20003
99 #define OPEN_SDK_PUSH_MQTT_MAX_MESSAGES_ERROR OPEN_SDK_PUSH_BASE + 20004
100 #define OPEN_SDK_PUSH_MQTT_BAD_UTF8_STRING_ERROR OPEN_SDK_PUSH_BASE + 20005
101 #define OPEN_SDK_PUSH_MQTT_NULL_PARAMETER_ERROR OPEN_SDK_PUSH_BASE + 20006
103 #define OPEN_SDK_PUSH_MQTT_VERSION_INVALID_ERROR OPEN_SDK_PUSH_BASE + 30001
104 #define OPEN_SDK_PUSH_MQTT_IDENTIFIER_ERROR OPEN_SDK_PUSH_BASE + 30002
105 #define OPEN_SDK_PUSH_MQTT_SERVER_UNAVAILABLE_ERROR OPEN_SDK_PUSH_BASE + 30003
106 #define OPEN_SDK_PUSH_MQTT_BAD_USERNAME_PASSWORD_ERROR OPEN_SDK_PUSH_BASE + 30004
107 #define OPEN_SDK_PUSH_MQTT_NOT_AUTHORIZED_ERROR OPEN_SDK_PUSH_BASE + 30005
109 #define OPEN_SDK_PUSH_PLATFORM_RESPINFO_BAD OPEN_SDK_PUSH_BASE + 40001
110 #define OPEN_SDK_PUSH_PLATFORM_RESPINFO_INVALID OPEN_SDK_PUSH_BASE + 40002
111 #define OPEN_SDK_PUSH_PLATFORM_SESSION_INVALID_ERROR OPEN_SDK_PUSH_BASE + 40003
112 #define OPEN_SDK_PUSH_PLATFORM_UNAUTHORIZED_ERROR OPEN_SDK_PUSH_BASE + 40401
114 #define OPEN_SDK_PUSH_COULDNT_CREATE_THREAD OPEN_SDK_PUSH_BASE + 50001
115 #define OPEN_SDK_PUSH_COULDNT_ALLOC_BUFFERS OPEN_SDK_PUSH_BASE + 50002
117 #define OPEN_SDK_PUSH_COULDNT_RESOLVE_HOST OPEN_SDK_PUSH_BASE + 60006
118 #define OPEN_SDK_PUSH_COULDNT_CONNECT OPEN_SDK_PUSH_BASE + 60007
119 #define OPEN_SDK_PUSH_OPERATION_TIMEOUT OPEN_SDK_PUSH_BASE + 60028
122 #define OPEN_SDK_NETSTREAM_BASE 500000
123 #define OPEN_SDK_START_TALK_FAILED OPEN_SDK_NETSTREAM_BASE + 1
124 #define OPEN_SDK_TALK_OPENED OPEN_SDK_NETSTREAM_BASE + 2
127 #define OPEN_SDK_UNDEFINE_BASE 900000
128 #define OPEN_SDK_ALLOCSESSION_FAILED OPEN_SDK_UNDEFINE_BASE + 1
129 #define OPEN_SDK_SEARCH_RECORD_FAILED OPEN_SDK_UNDEFINE_BASE + 2
130 #define OPEN_SDK_START_ALARM_REC_FAILED OPEN_SDK_UNDEFINE_BASE + 3
137 #define OPEN_SDK_STREAM_ACCESSTOKEN_ERROR_OR_EXPIRE "UE001"
138 #define OPEN_SDK_STREAM_PU_NO_RESOURCE "UE101"
139 #define OPEN_SDK_STREAM_TRANSF_DEVICE_OFFLINE "UE102"
140 #define OPEN_SDK_STREAM_INNER_TIMEOUT "UE103"
141 #define OPEN_SDK_STREAM_INNER_VERIFYCODE_ERROR "UE104"
142 #define OPEN_SDK_STREAM_PLAY_FAIL "UE105"
143 #define OPEN_SDK_STREAM_TRANSF_TERMINAL_BINDING "UE106"
144 #define OPEN_SDK_STREAM_VIDEO_RECORD_NOTEXIST "UE108"
145 #define OPEN_SDK_STREAM_VTDU_CONCURRENT_LIMIT "UE109"
146 #define OPEN_SDK_STREAM_UNSUPPORTED "UE110"
147 #define OPEN_SDK_STREAM_DEVICE_RETURN_ON_VIDEO_SOURCE "UE111"
150 #endif //_H_OPENNETSTREAMERROR_H_