|
@@ -0,0 +1,781 @@
|
|
1
|
+// Agora Engine SDK
|
|
2
|
+//
|
|
3
|
+// Copyright (c) 2019 Agora.io. All rights reserved.
|
|
4
|
+//
|
|
5
|
+
|
|
6
|
+#ifndef AGORA_BASE_H
|
|
7
|
+#define AGORA_BASE_H
|
|
8
|
+
|
|
9
|
+#include <stddef.h>
|
|
10
|
+#include <stdio.h>
|
|
11
|
+#include <stdarg.h>
|
|
12
|
+
|
|
13
|
+#if defined(_WIN32)
|
|
14
|
+#define WIN32_LEAN_AND_MEAN
|
|
15
|
+#include <windows.h>
|
|
16
|
+#define AGORA_CALL __cdecl
|
|
17
|
+#if defined(AGORARTC_EXPORT)
|
|
18
|
+#define AGORA_API extern "C" __declspec(dllexport)
|
|
19
|
+#else
|
|
20
|
+#define AGORA_API extern "C" __declspec(dllimport)
|
|
21
|
+#endif
|
|
22
|
+#elif defined(__APPLE__)
|
|
23
|
+#include <TargetConditionals.h>
|
|
24
|
+#define AGORA_API __attribute__((visibility("default"))) extern "C"
|
|
25
|
+#define AGORA_CALL
|
|
26
|
+#elif defined(__ANDROID__) || defined(__linux__)
|
|
27
|
+#define AGORA_API extern "C" __attribute__((visibility("default")))
|
|
28
|
+#define AGORA_CALL
|
|
29
|
+#else
|
|
30
|
+#define AGORA_API extern "C"
|
|
31
|
+#define AGORA_CALL
|
|
32
|
+#endif
|
|
33
|
+
|
|
34
|
+namespace agora {
|
|
35
|
+namespace util {
|
|
36
|
+
|
|
37
|
+template<class T>
|
|
38
|
+class AutoPtr {
|
|
39
|
+ typedef T value_type;
|
|
40
|
+ typedef T* pointer_type;
|
|
41
|
+public:
|
|
42
|
+ AutoPtr(pointer_type p=0)
|
|
43
|
+ :ptr_(p)
|
|
44
|
+ {}
|
|
45
|
+ ~AutoPtr() {
|
|
46
|
+ if (ptr_)
|
|
47
|
+ ptr_->release();
|
|
48
|
+ }
|
|
49
|
+ operator bool() const { return ptr_ != (pointer_type)0; }
|
|
50
|
+ value_type& operator*() const {
|
|
51
|
+ return *get();
|
|
52
|
+ }
|
|
53
|
+
|
|
54
|
+ pointer_type operator->() const {
|
|
55
|
+ return get();
|
|
56
|
+ }
|
|
57
|
+
|
|
58
|
+ pointer_type get() const {
|
|
59
|
+ return ptr_;
|
|
60
|
+ }
|
|
61
|
+
|
|
62
|
+ pointer_type release() {
|
|
63
|
+ pointer_type tmp = ptr_;
|
|
64
|
+ ptr_ = 0;
|
|
65
|
+ return tmp;
|
|
66
|
+ }
|
|
67
|
+
|
|
68
|
+ void reset(pointer_type ptr = 0) {
|
|
69
|
+ if (ptr != ptr_ && ptr_)
|
|
70
|
+ ptr_->release();
|
|
71
|
+ ptr_ = ptr;
|
|
72
|
+ }
|
|
73
|
+ template<class C1, class C2>
|
|
74
|
+ bool queryInterface(C1* c, C2 iid) {
|
|
75
|
+ pointer_type p = NULL;
|
|
76
|
+ if (c && !c->queryInterface(iid, (void**)&p))
|
|
77
|
+ {
|
|
78
|
+ reset(p);
|
|
79
|
+ }
|
|
80
|
+ return p != NULL;
|
|
81
|
+ }
|
|
82
|
+private:
|
|
83
|
+ AutoPtr(const AutoPtr&);
|
|
84
|
+ AutoPtr& operator=(const AutoPtr&);
|
|
85
|
+private:
|
|
86
|
+ pointer_type ptr_;
|
|
87
|
+};
|
|
88
|
+class IString {
|
|
89
|
+protected:
|
|
90
|
+ virtual ~IString(){}
|
|
91
|
+public:
|
|
92
|
+ virtual bool empty() const = 0;
|
|
93
|
+ virtual const char* c_str() = 0;
|
|
94
|
+ virtual const char* data() = 0;
|
|
95
|
+ virtual size_t length() = 0;
|
|
96
|
+ virtual void release() = 0;
|
|
97
|
+};
|
|
98
|
+typedef AutoPtr<IString> AString;
|
|
99
|
+
|
|
100
|
+}//namespace util
|
|
101
|
+
|
|
102
|
+enum INTERFACE_ID_TYPE
|
|
103
|
+{
|
|
104
|
+ AGORA_IID_AUDIO_DEVICE_MANAGER = 1,
|
|
105
|
+ AGORA_IID_VIDEO_DEVICE_MANAGER = 2,
|
|
106
|
+ AGORA_IID_RTC_ENGINE_PARAMETER = 3,
|
|
107
|
+ AGORA_IID_MEDIA_ENGINE = 4,
|
|
108
|
+ AGORA_IID_SIGNALING_ENGINE = 8,
|
|
109
|
+};
|
|
110
|
+
|
|
111
|
+ /** Warning code.
|
|
112
|
+ */
|
|
113
|
+enum WARN_CODE_TYPE
|
|
114
|
+{
|
|
115
|
+ /** 8: The specified view is invalid. Specify a view when using the video call function.
|
|
116
|
+ */
|
|
117
|
+ WARN_INVALID_VIEW = 8,
|
|
118
|
+ /** 16: Failed to initialize the video function, possibly caused by a lack of resources. The users cannot see the video while the voice communication is not affected.
|
|
119
|
+ */
|
|
120
|
+ WARN_INIT_VIDEO = 16,
|
|
121
|
+ /** 20: The request is pending, usually due to some module not being ready, and the SDK postponed processing the request.
|
|
122
|
+ */
|
|
123
|
+ WARN_PENDING = 20,
|
|
124
|
+ /** 103: No channel resources are available. Maybe because the server cannot allocate any channel resource.
|
|
125
|
+ */
|
|
126
|
+ WARN_NO_AVAILABLE_CHANNEL = 103,
|
|
127
|
+ /** 104: A timeout occurs when looking up the channel. When joining a channel, the SDK looks up the specified channel. This warning usually occurs when the network condition is too poor for the SDK to connect to the server.
|
|
128
|
+ */
|
|
129
|
+ WARN_LOOKUP_CHANNEL_TIMEOUT = 104,
|
|
130
|
+ /** **DEPRECATED** 105: The server rejects the request to look up the channel. The server cannot process this request or the request is illegal.
|
|
131
|
+
|
|
132
|
+ Deprecated as of v2.4.1. Use CONNECTION_CHANGED_REJECTED_BY_SERVER(10) in the \ref agora::rtc::IRtcEngineEventHandler::onConnectionStateChanged "onConnectionStateChanged" callback instead.
|
|
133
|
+ */
|
|
134
|
+ WARN_LOOKUP_CHANNEL_REJECTED = 105,
|
|
135
|
+ /** 106: A timeout occurs when opening the channel. Once the specific channel is found, the SDK opens the channel. This warning usually occurs when the network condition is too poor for the SDK to connect to the server.
|
|
136
|
+ */
|
|
137
|
+ WARN_OPEN_CHANNEL_TIMEOUT = 106,
|
|
138
|
+ /** 107: The server rejects the request to open the channel. The server cannot process this request or the request is illegal.
|
|
139
|
+ */
|
|
140
|
+ WARN_OPEN_CHANNEL_REJECTED = 107,
|
|
141
|
+
|
|
142
|
+ // sdk: 100~1000
|
|
143
|
+ /** 111: A timeout occurs when switching to the live video.
|
|
144
|
+ */
|
|
145
|
+ WARN_SWITCH_LIVE_VIDEO_TIMEOUT = 111,
|
|
146
|
+ /** 118: A timeout occurs when setting the client role in the live broadcast profile.
|
|
147
|
+ */
|
|
148
|
+ WARN_SET_CLIENT_ROLE_TIMEOUT = 118,
|
|
149
|
+ /** 121: The ticket to open the channel is invalid.
|
|
150
|
+ */
|
|
151
|
+ WARN_OPEN_CHANNEL_INVALID_TICKET = 121,
|
|
152
|
+ /** 122: Try connecting to another server.
|
|
153
|
+ */
|
|
154
|
+ WARN_OPEN_CHANNEL_TRY_NEXT_VOS = 122,
|
|
155
|
+ WARN_CHANNEL_CONNECTION_UNRECOVERABLE = 131,
|
|
156
|
+ WARN_CHANNEL_CONNECTION_IP_CHANGED = 132,
|
|
157
|
+ WARN_CHANNEL_CONNECTION_PORT_CHANGED = 133,
|
|
158
|
+ /** 701: An error occurs in opening the audio mixing file.
|
|
159
|
+ */
|
|
160
|
+ WARN_AUDIO_MIXING_OPEN_ERROR = 701,
|
|
161
|
+ /** 1014: Audio Device Module: a warning occurs in the playback device.
|
|
162
|
+ */
|
|
163
|
+ WARN_ADM_RUNTIME_PLAYOUT_WARNING = 1014,
|
|
164
|
+ /** 1016: Audio Device Module: a warning occurs in the recording device.
|
|
165
|
+ */
|
|
166
|
+ WARN_ADM_RUNTIME_RECORDING_WARNING = 1016,
|
|
167
|
+ /** 1019: Audio Device Module: no valid audio data is collected.
|
|
168
|
+ */
|
|
169
|
+ WARN_ADM_RECORD_AUDIO_SILENCE = 1019,
|
|
170
|
+ /** 1020: Audio Device Module: the playback device fails.
|
|
171
|
+ */
|
|
172
|
+ WARN_ADM_PLAYOUT_MALFUNCTION = 1020,
|
|
173
|
+ /** 1021: Audio Device Module: the recording device fails.
|
|
174
|
+ */
|
|
175
|
+ WARN_ADM_RECORD_MALFUNCTION = 1021,
|
|
176
|
+ /** 1029: During a call, the audio session category should be set to
|
|
177
|
+ * AVAudioSessionCategoryPlayAndRecord, and RtcEngine monitors this value.
|
|
178
|
+ * If the audio session category is set to other values, this warning code
|
|
179
|
+ * is triggered and RtcEngine will forcefully set it back to
|
|
180
|
+ * AVAudioSessionCategoryPlayAndRecord.
|
|
181
|
+ */
|
|
182
|
+ WARN_ADM_IOS_CATEGORY_NOT_PLAYANDRECORD = 1029,
|
|
183
|
+ /**
|
|
184
|
+ */
|
|
185
|
+ WARN_ADM_IOS_SAMPLERATE_CHANGE = 1030,
|
|
186
|
+ /** 1031: Audio Device Module: the recorded audio voice is too low.
|
|
187
|
+ */
|
|
188
|
+ WARN_ADM_RECORD_AUDIO_LOWLEVEL = 1031,
|
|
189
|
+ /** 1032: Audio Device Module: the playback audio voice is too low.
|
|
190
|
+ */
|
|
191
|
+ WARN_ADM_PLAYOUT_AUDIO_LOWLEVEL = 1032,
|
|
192
|
+ /** 1040: Audio device module: An exception occurs with the audio drive.
|
|
193
|
+ * Solutions:
|
|
194
|
+ * - Disable or re-enable the audio device.
|
|
195
|
+ * - Re-enable your device.
|
|
196
|
+ * - Update the sound card drive.
|
|
197
|
+ */
|
|
198
|
+ WARN_ADM_WINDOWS_NO_DATA_READY_EVENT = 1040,
|
|
199
|
+ /** 1051: Audio Device Module: howling is detected.
|
|
200
|
+ */
|
|
201
|
+ WARN_APM_HOWLING = 1051,
|
|
202
|
+ /** 1052: Audio Device Module: the device is in the glitch state.
|
|
203
|
+ */
|
|
204
|
+ WARN_ADM_GLITCH_STATE = 1052,
|
|
205
|
+ /** 1053: Audio Device Module: the underlying audio settings have changed.
|
|
206
|
+ */
|
|
207
|
+ WARN_ADM_IMPROPER_SETTINGS = 1053,
|
|
208
|
+ /**
|
|
209
|
+ */
|
|
210
|
+ WARN_ADM_WIN_CORE_NO_RECORDING_DEVICE = 1322,
|
|
211
|
+ /** 1323: Audio device module: No available playback device.
|
|
212
|
+ * Solution: Plug in the audio device.
|
|
213
|
+ */
|
|
214
|
+ WARN_ADM_WIN_CORE_NO_PLAYOUT_DEVICE = 1323,
|
|
215
|
+ /** Audio device module: The capture device is released improperly.
|
|
216
|
+ * Solutions:
|
|
217
|
+ * - Disable or re-enable the audio device.
|
|
218
|
+ * - Re-enable your device.
|
|
219
|
+ * - Update the sound card drive.
|
|
220
|
+ */
|
|
221
|
+ WARN_ADM_WIN_CORE_IMPROPER_CAPTURE_RELEASE = 1324,
|
|
222
|
+ /** 1610: Super-resolution warning: the original video dimensions of the remote user exceed 640 × 480.
|
|
223
|
+ */
|
|
224
|
+ WARN_SUPER_RESOLUTION_STREAM_OVER_LIMITATION = 1610,
|
|
225
|
+ /** 1611: Super-resolution warning: another user is using super resolution.
|
|
226
|
+ */
|
|
227
|
+ WARN_SUPER_RESOLUTION_USER_COUNT_OVER_LIMITATION = 1611,
|
|
228
|
+ /** 1612: The device is not supported.
|
|
229
|
+ */
|
|
230
|
+ WARN_SUPER_RESOLUTION_DEVICE_NOT_SUPPORTED = 1612,
|
|
231
|
+
|
|
232
|
+ WARN_RTM_LOGIN_TIMEOUT = 2005,
|
|
233
|
+ WARN_RTM_KEEP_ALIVE_TIMEOUT = 2009
|
|
234
|
+};
|
|
235
|
+
|
|
236
|
+/** Error code.
|
|
237
|
+*/
|
|
238
|
+enum ERROR_CODE_TYPE
|
|
239
|
+{
|
|
240
|
+ /** 0: No error occurs.
|
|
241
|
+ */
|
|
242
|
+ ERR_OK = 0,
|
|
243
|
+ //1~1000
|
|
244
|
+ /** 1: A general error occurs (no specified reason).
|
|
245
|
+ */
|
|
246
|
+ ERR_FAILED = 1,
|
|
247
|
+ /** 2: An invalid parameter is used. For example, the specific channel name includes illegal characters.
|
|
248
|
+ */
|
|
249
|
+ ERR_INVALID_ARGUMENT = 2,
|
|
250
|
+ /** 3: The SDK module is not ready. Possible solutions:
|
|
251
|
+
|
|
252
|
+ - Check the audio device.
|
|
253
|
+ - Check the completeness of the application.
|
|
254
|
+ - Re-initialize the RTC engine.
|
|
255
|
+ */
|
|
256
|
+ ERR_NOT_READY = 3,
|
|
257
|
+ /** 4: The SDK does not support this function.
|
|
258
|
+ */
|
|
259
|
+ ERR_NOT_SUPPORTED = 4,
|
|
260
|
+ /** 5: The request is rejected. This is for internal SDK use only, and it does not return to the application through any method or callback.
|
|
261
|
+ */
|
|
262
|
+ ERR_REFUSED = 5,
|
|
263
|
+ /** 6: The buffer size is not big enough to store the returned data.
|
|
264
|
+ */
|
|
265
|
+ ERR_BUFFER_TOO_SMALL = 6,
|
|
266
|
+ /** 7: The SDK is not initialized before calling this method.
|
|
267
|
+ */
|
|
268
|
+ ERR_NOT_INITIALIZED = 7,
|
|
269
|
+ /** 9: No permission exists. This is for internal SDK use only, and it does not return to the application through any method or callback.
|
|
270
|
+ */
|
|
271
|
+ ERR_NO_PERMISSION = 9,
|
|
272
|
+ /** 10: An API method timeout occurs. Some API methods require the SDK to return the execution result, and this error occurs if the request takes too long (more than 10 seconds) for the SDK to process.
|
|
273
|
+ */
|
|
274
|
+ ERR_TIMEDOUT = 10,
|
|
275
|
+ /** 11: The request is canceled. This is for internal SDK use only, and it does not return to the application through any method or callback.
|
|
276
|
+ */
|
|
277
|
+ ERR_CANCELED = 11,
|
|
278
|
+ /** 12: The method is called too often. This is for internal SDK use only, and it does not return to the application through any method or callback.
|
|
279
|
+ */
|
|
280
|
+ ERR_TOO_OFTEN = 12,
|
|
281
|
+ /** 13: The SDK fails to bind to the network socket. This is for internal SDK use only, and it does not return to the application through any method or callback.
|
|
282
|
+ */
|
|
283
|
+ ERR_BIND_SOCKET = 13,
|
|
284
|
+ /** 14: The network is unavailable. This is for internal SDK use only, and it does not return to the application through any method or callback.
|
|
285
|
+ */
|
|
286
|
+ ERR_NET_DOWN = 14,
|
|
287
|
+ /** 15: No network buffers are available. This is for internal SDK internal use only, and it does not return to the application through any method or callback.
|
|
288
|
+ */
|
|
289
|
+ ERR_NET_NOBUFS = 15,
|
|
290
|
+ /** 17: The request to join the channel is rejected. This error usually occurs when the user is already in the channel, and still calls the method to join the channel, for example, \ref agora::rtc::IRtcEngine::joinChannel "joinChannel".
|
|
291
|
+ */
|
|
292
|
+ ERR_JOIN_CHANNEL_REJECTED = 17,
|
|
293
|
+ /** 18: The request to leave the channel is rejected.
|
|
294
|
+
|
|
295
|
+ This error usually occurs:
|
|
296
|
+
|
|
297
|
+ - When the user has left the channel and still calls \ref agora::rtc::IRtcEngine::leaveChannel "leaveChannel" to leave the channel. In this case, stop calling \ref agora::rtc::IRtcEngine::leaveChannel "leaveChannel".
|
|
298
|
+ - When the user has not joined the channel and still calls \ref agora::rtc::IRtcEngine::leaveChannel "leaveChannel" to leave the channel. In this case, no extra operation is needed.
|
|
299
|
+ */
|
|
300
|
+ ERR_LEAVE_CHANNEL_REJECTED = 18,
|
|
301
|
+ /** 19: Resources are occupied and cannot be reused.
|
|
302
|
+ */
|
|
303
|
+ ERR_ALREADY_IN_USE = 19,
|
|
304
|
+ /** 20: The SDK gives up the request due to too many requests.
|
|
305
|
+ */
|
|
306
|
+ ERR_ABORTED = 20,
|
|
307
|
+ /** 21: In Windows, specific firewall settings can cause the SDK to fail to initialize and crash.
|
|
308
|
+ */
|
|
309
|
+ ERR_INIT_NET_ENGINE = 21,
|
|
310
|
+ /** 22: The application uses too much of the system resources and the SDK fails to allocate the resources.
|
|
311
|
+ */
|
|
312
|
+ ERR_RESOURCE_LIMITED = 22,
|
|
313
|
+ /** 101: The specified App ID is invalid. Please try to rejoin the channel with a valid App ID.
|
|
314
|
+ */
|
|
315
|
+ ERR_INVALID_APP_ID = 101,
|
|
316
|
+ /** 102: The specified channel name is invalid. Please try to rejoin the channel with a valid channel name.
|
|
317
|
+ */
|
|
318
|
+ ERR_INVALID_CHANNEL_NAME = 102,
|
|
319
|
+ /** **DEPRECATED** 109: Deprecated as of v2.4.1. Use CONNECTION_CHANGED_TOKEN_EXPIRED(9) in the \ref agora::rtc::IRtcEngineEventHandler::onConnectionStateChanged "onConnectionStateChanged" callback instead.
|
|
320
|
+
|
|
321
|
+ The token expired due to one of the following reasons:
|
|
322
|
+
|
|
323
|
+ - Authorized Timestamp expired: The timestamp is represented by the number of seconds elapsed since 1/1/1970. The user can use the Token to access the Agora service within five minutes after the Token is generated. If the user does not access the Agora service after five minutes, this Token is no longer valid.
|
|
324
|
+ - Call Expiration Timestamp expired: The timestamp is the exact time when a user can no longer use the Agora service (for example, when a user is forced to leave an ongoing call). When a value is set for the Call Expiration Timestamp, it does not mean that the token will expire, but that the user will be banned from the channel.
|
|
325
|
+ */
|
|
326
|
+ ERR_TOKEN_EXPIRED = 109,
|
|
327
|
+ /** **DEPRECATED** 110: Deprecated as of v2.4.1. Use CONNECTION_CHANGED_INVALID_TOKEN(8) in the \ref agora::rtc::IRtcEngineEventHandler::onConnectionStateChanged "onConnectionStateChanged" callback instead.
|
|
328
|
+
|
|
329
|
+ The token is invalid due to one of the following reasons:
|
|
330
|
+
|
|
331
|
+ - The App Certificate for the project is enabled in Dashboard, but the user is still using the App ID. Once the App Certificate is enabled, the user must use a token.
|
|
332
|
+ - The uid is mandatory, and users must set the same uid as the one set in the \ref agora::rtc::IRtcEngine::joinChannel "joinChannel" method.
|
|
333
|
+ */
|
|
334
|
+ ERR_INVALID_TOKEN = 110,
|
|
335
|
+ /** 111: The internet connection is interrupted. This applies to the Agora Web SDK only.
|
|
336
|
+ */
|
|
337
|
+ ERR_CONNECTION_INTERRUPTED = 111, // only used in web sdk
|
|
338
|
+ /** 112: The internet connection is lost. This applies to the Agora Web SDK only.
|
|
339
|
+ */
|
|
340
|
+ ERR_CONNECTION_LOST = 112, // only used in web sdk
|
|
341
|
+ /** 113: The user is not in the channel when calling the \ref agora::rtc::IRtcEngine::sendStreamMessage "sendStreamMessage" or \ref agora::rtc::IRtcEngine::getUserInfoByUserAccount "getUserInfoByUserAccount" method.
|
|
342
|
+ */
|
|
343
|
+ ERR_NOT_IN_CHANNEL = 113,
|
|
344
|
+ /** 114: The size of the sent data is over 1024 bytes when the user calls the \ref agora::rtc::IRtcEngine::sendStreamMessage "sendStreamMessage" method.
|
|
345
|
+ */
|
|
346
|
+ ERR_SIZE_TOO_LARGE = 114,
|
|
347
|
+ /** 115: The bitrate of the sent data exceeds the limit of 6 Kbps when the user calls the \ref agora::rtc::IRtcEngine::sendStreamMessage "sendStreamMessage" method.
|
|
348
|
+ */
|
|
349
|
+ ERR_BITRATE_LIMIT = 115,
|
|
350
|
+ /** 116: Too many data streams (over 5 streams) are created when the user calls the \ref agora::rtc::IRtcEngine::createDataStream "createDataStream" method.
|
|
351
|
+ */
|
|
352
|
+ ERR_TOO_MANY_DATA_STREAMS = 116,
|
|
353
|
+ /** 117: The data stream transmission timed out.
|
|
354
|
+ */
|
|
355
|
+ ERR_STREAM_MESSAGE_TIMEOUT = 117,
|
|
356
|
+ /** 119: Switching roles fail. Please try to rejoin the channel.
|
|
357
|
+ */
|
|
358
|
+ ERR_SET_CLIENT_ROLE_NOT_AUTHORIZED = 119,
|
|
359
|
+ /** 120: Decryption fails. The user may have used a different encryption password to join the channel. Check your settings or try rejoining the channel.
|
|
360
|
+ */
|
|
361
|
+ ERR_DECRYPTION_FAILED = 120,
|
|
362
|
+ /** 123: The client is banned by the server.
|
|
363
|
+ */
|
|
364
|
+ ERR_CLIENT_IS_BANNED_BY_SERVER = 123,
|
|
365
|
+ /** 124: Incorrect watermark file parameter.
|
|
366
|
+ */
|
|
367
|
+ ERR_WATERMARK_PARAM = 124,
|
|
368
|
+ /** 125: Incorrect watermark file path.
|
|
369
|
+ */
|
|
370
|
+ ERR_WATERMARK_PATH = 125,
|
|
371
|
+ /** 126: Incorrect watermark file format.
|
|
372
|
+ */
|
|
373
|
+ ERR_WATERMARK_PNG = 126,
|
|
374
|
+ /** 127: Incorrect watermark file information.
|
|
375
|
+ */
|
|
376
|
+ ERR_WATERMARKR_INFO = 127,
|
|
377
|
+ /** 128: Incorrect watermark file data format.
|
|
378
|
+ */
|
|
379
|
+ ERR_WATERMARK_ARGB = 128,
|
|
380
|
+ /** 129: An error occurs in reading the watermark file.
|
|
381
|
+ */
|
|
382
|
+ ERR_WATERMARK_READ = 129,
|
|
383
|
+ /** 130: Encryption is enabled when the user calls the \ref agora::rtc::IRtcEngine::addPublishStreamUrl "addPublishStreamUrl" method (CDN live streaming does not support encrypted streams).
|
|
384
|
+ */
|
|
385
|
+ ERR_ENCRYPTED_STREAM_NOT_ALLOWED_PUBLISH = 130,
|
|
386
|
+ /** 134: The user account is invalid. */
|
|
387
|
+ ERR_INVALID_USER_ACCOUNT = 134,
|
|
388
|
+
|
|
389
|
+ /** 151: CDN related errors. Remove the original URL address and add a new one by calling the \ref agora::rtc::IRtcEngine::removePublishStreamUrl "removePublishStreamUrl" and \ref agora::rtc::IRtcEngine::addPublishStreamUrl "addPublishStreamUrl" methods.
|
|
390
|
+ */
|
|
391
|
+ ERR_PUBLISH_STREAM_CDN_ERROR = 151,
|
|
392
|
+ /** 152: The host publishes more than 10 URLs. Delete the unnecessary URLs before adding new ones.
|
|
393
|
+ */
|
|
394
|
+ ERR_PUBLISH_STREAM_NUM_REACH_LIMIT = 152,
|
|
395
|
+ /** 153: The host manipulates other hosts' URLs. Check your app logic.
|
|
396
|
+ */
|
|
397
|
+ ERR_PUBLISH_STREAM_NOT_AUTHORIZED = 153,
|
|
398
|
+ /** 154: An error occurs in Agora's streaming server. Call the addPublishStreamUrl method to publish the streaming again.
|
|
399
|
+ */
|
|
400
|
+ ERR_PUBLISH_STREAM_INTERNAL_SERVER_ERROR = 154,
|
|
401
|
+ /** 155: The server fails to find the stream.
|
|
402
|
+ */
|
|
403
|
+ ERR_PUBLISH_STREAM_NOT_FOUND = 155,
|
|
404
|
+ /** 156: The format of the RTMP stream URL is not supported. Check whether the URL format is correct.
|
|
405
|
+ */
|
|
406
|
+ ERR_PUBLISH_STREAM_FORMAT_NOT_SUPPORTED = 156,
|
|
407
|
+
|
|
408
|
+ //signaling: 400~600
|
|
409
|
+ /**
|
|
410
|
+ */
|
|
411
|
+ ERR_LOGOUT_OTHER = 400, //
|
|
412
|
+ /** 401: The user logged out.
|
|
413
|
+ */
|
|
414
|
+ ERR_LOGOUT_USER = 401, // logout by user
|
|
415
|
+ /** 402: Network failure.
|
|
416
|
+ */
|
|
417
|
+ ERR_LOGOUT_NET = 402, // network failure
|
|
418
|
+ /** 403: Logged in another device.
|
|
419
|
+ */
|
|
420
|
+ ERR_LOGOUT_KICKED = 403, // login in other device
|
|
421
|
+ /**
|
|
422
|
+ */
|
|
423
|
+ ERR_LOGOUT_PACKET = 404, //
|
|
424
|
+ /** 405: The token expired.
|
|
425
|
+ */
|
|
426
|
+ ERR_LOGOUT_TOKEN_EXPIRED = 405, // token expired
|
|
427
|
+ /**
|
|
428
|
+ */
|
|
429
|
+ ERR_LOGOUT_OLDVERSION = 406, //
|
|
430
|
+ /**
|
|
431
|
+ */
|
|
432
|
+ ERR_LOGOUT_TOKEN_WRONG = 407,
|
|
433
|
+ /**
|
|
434
|
+ */
|
|
435
|
+ ERR_LOGOUT_ALREADY_LOGOUT = 408,
|
|
436
|
+ /**
|
|
437
|
+ */
|
|
438
|
+ ERR_LOGIN_OTHER = 420,
|
|
439
|
+ /**
|
|
440
|
+ */
|
|
441
|
+ ERR_LOGIN_NET = 421,
|
|
442
|
+ /**
|
|
443
|
+ */
|
|
444
|
+ ERR_LOGIN_FAILED = 422,
|
|
445
|
+ /**
|
|
446
|
+ */
|
|
447
|
+ ERR_LOGIN_CANCELED = 423,
|
|
448
|
+ /**
|
|
449
|
+ */
|
|
450
|
+ ERR_LOGIN_TOKEN_EXPIRED = 424,
|
|
451
|
+ /**
|
|
452
|
+ */
|
|
453
|
+ ERR_LOGIN_OLD_VERSION = 425,
|
|
454
|
+ /**
|
|
455
|
+ */
|
|
456
|
+ ERR_LOGIN_TOKEN_WRONG = 426,
|
|
457
|
+ /**
|
|
458
|
+ */
|
|
459
|
+ ERR_LOGIN_TOKEN_KICKED = 427,
|
|
460
|
+ /**
|
|
461
|
+ */
|
|
462
|
+ ERR_LOGIN_ALREADY_LOGIN = 428,
|
|
463
|
+ /**
|
|
464
|
+ */
|
|
465
|
+ ERR_JOIN_CHANNEL_OTHER = 440,
|
|
466
|
+ /**
|
|
467
|
+ */
|
|
468
|
+ ERR_SEND_MESSAGE_OTHER = 440,
|
|
469
|
+ /**
|
|
470
|
+ */
|
|
471
|
+ ERR_SEND_MESSAGE_TIMEOUT = 441,
|
|
472
|
+ /**
|
|
473
|
+ */
|
|
474
|
+ ERR_QUERY_USERNUM_OTHER = 450,
|
|
475
|
+ /**
|
|
476
|
+ */
|
|
477
|
+ ERR_QUERY_USERNUM_TIMEOUT = 451,
|
|
478
|
+ /**
|
|
479
|
+ */
|
|
480
|
+ ERR_QUERY_USERNUM_BYUSER = 452,
|
|
481
|
+ /**
|
|
482
|
+ */
|
|
483
|
+ ERR_LEAVE_CHANNEL_OTHER = 460,
|
|
484
|
+ /**
|
|
485
|
+ */
|
|
486
|
+ ERR_LEAVE_CHANNEL_KICKED = 461,
|
|
487
|
+ /**
|
|
488
|
+ */
|
|
489
|
+ ERR_LEAVE_CHANNEL_BYUSER = 462,
|
|
490
|
+ /**
|
|
491
|
+ */
|
|
492
|
+ ERR_LEAVE_CHANNEL_LOGOUT = 463,
|
|
493
|
+ /**
|
|
494
|
+ */
|
|
495
|
+ ERR_LEAVE_CHANNEL_DISCONNECTED = 464,
|
|
496
|
+ /**
|
|
497
|
+ */
|
|
498
|
+ ERR_INVITE_OTHER = 470,
|
|
499
|
+ /**
|
|
500
|
+ */
|
|
501
|
+ ERR_INVITE_REINVITE = 471,
|
|
502
|
+ /**
|
|
503
|
+ */
|
|
504
|
+ ERR_INVITE_NET = 472,
|
|
505
|
+ /**
|
|
506
|
+ */
|
|
507
|
+ ERR_INVITE_PEER_OFFLINE = 473,
|
|
508
|
+ ERR_INVITE_TIMEOUT = 474,
|
|
509
|
+ ERR_INVITE_CANT_RECV = 475,
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+ //1001~2000
|
|
513
|
+ /** 1001: Fails to load the media engine.
|
|
514
|
+ */
|
|
515
|
+ ERR_LOAD_MEDIA_ENGINE = 1001,
|
|
516
|
+ /** 1002: Fails to start the call after enabling the media engine.
|
|
517
|
+ */
|
|
518
|
+ ERR_START_CALL = 1002,
|
|
519
|
+ /** **DEPRECATED** 1003: Fails to start the camera.
|
|
520
|
+
|
|
521
|
+ Deprecated as of v2.4.1. Use LOCAL_VIDEO_STREAM_ERROR_CAPTURE_FAILURE(4) in the \ref agora::rtc::IRtcEngineEventHandler::onConnectionStateChanged "onConnectionStateChanged" callback instead.
|
|
522
|
+ */
|
|
523
|
+ ERR_START_CAMERA = 1003,
|
|
524
|
+ /** 1004: Fails to start the video rendering module.
|
|
525
|
+ */
|
|
526
|
+ ERR_START_VIDEO_RENDER = 1004,
|
|
527
|
+ /** 1005: A general error occurs in the Audio Device Module (no specified reason). Check if the audio device is used by another application, or try rejoining the channel.
|
|
528
|
+ */
|
|
529
|
+ ERR_ADM_GENERAL_ERROR = 1005,
|
|
530
|
+ /** 1006: Audio Device Module: An error occurs in using the Java resources.
|
|
531
|
+ */
|
|
532
|
+ ERR_ADM_JAVA_RESOURCE = 1006,
|
|
533
|
+ /** 1007: Audio Device Module: An error occurs in setting the sampling frequency.
|
|
534
|
+ */
|
|
535
|
+ ERR_ADM_SAMPLE_RATE = 1007,
|
|
536
|
+ /** 1008: Audio Device Module: An error occurs in initializing the playback device.
|
|
537
|
+ */
|
|
538
|
+ ERR_ADM_INIT_PLAYOUT = 1008,
|
|
539
|
+ /** 1009: Audio Device Module: An error occurs in starting the playback device.
|
|
540
|
+ */
|
|
541
|
+ ERR_ADM_START_PLAYOUT = 1009,
|
|
542
|
+ /** 1010: Audio Device Module: An error occurs in stopping the playback device.
|
|
543
|
+ */
|
|
544
|
+ ERR_ADM_STOP_PLAYOUT = 1010,
|
|
545
|
+ /** 1011: Audio Device Module: An error occurs in initializing the recording device.
|
|
546
|
+ */
|
|
547
|
+ ERR_ADM_INIT_RECORDING = 1011,
|
|
548
|
+ /** 1012: Audio Device Module: An error occurs in starting the recording device.
|
|
549
|
+ */
|
|
550
|
+ ERR_ADM_START_RECORDING = 1012,
|
|
551
|
+ /** 1013: Audio Device Module: An error occurs in stopping the recording device.
|
|
552
|
+ */
|
|
553
|
+ ERR_ADM_STOP_RECORDING = 1013,
|
|
554
|
+ /** 1015: Audio Device Module: A playback error occurs. Check your playback device and try rejoining the channel.
|
|
555
|
+ */
|
|
556
|
+ ERR_ADM_RUNTIME_PLAYOUT_ERROR = 1015,
|
|
557
|
+ /** 1017: Audio Device Module: A recording error occurs.
|
|
558
|
+ */
|
|
559
|
+ ERR_ADM_RUNTIME_RECORDING_ERROR = 1017,
|
|
560
|
+ /** 1018: Audio Device Module: Fails to record.
|
|
561
|
+ */
|
|
562
|
+ ERR_ADM_RECORD_AUDIO_FAILED = 1018,
|
|
563
|
+ /** 1022: Audio Device Module: An error occurs in initializing the
|
|
564
|
+ * loopback device.
|
|
565
|
+ */
|
|
566
|
+ ERR_ADM_INIT_LOOPBACK = 1022,
|
|
567
|
+ /** 1023: Audio Device Module: An error occurs in starting the loopback
|
|
568
|
+ * device.
|
|
569
|
+ */
|
|
570
|
+ ERR_ADM_START_LOOPBACK = 1023,
|
|
571
|
+ /** 1027: Audio Device Module: No recording permission exists. Check if the
|
|
572
|
+ * recording permission is granted.
|
|
573
|
+ */
|
|
574
|
+ ERR_ADM_NO_PERMISSION = 1027,
|
|
575
|
+ /** 1033: Audio device module: The device is occupied.
|
|
576
|
+ */
|
|
577
|
+ ERR_ADM_RECORD_AUDIO_IS_ACTIVE = 1033,
|
|
578
|
+ /** 1101: Audio device module: A fatal exception occurs.
|
|
579
|
+ */
|
|
580
|
+ ERR_ADM_ANDROID_JNI_JAVA_RESOURCE = 1101,
|
|
581
|
+ /** 1108: Audio device module: The recording frequency is lower than 50.
|
|
582
|
+ * 0 indicates that the recording is not yet started. We recommend
|
|
583
|
+ * checking your recording permission.
|
|
584
|
+ */
|
|
585
|
+ ERR_ADM_ANDROID_JNI_NO_RECORD_FREQUENCY = 1108,
|
|
586
|
+ /** 1109: The playback frequency is lower than 50. 0 indicates that the
|
|
587
|
+ * playback is not yet started. We recommend checking if you have created
|
|
588
|
+ * too many AudioTrack instances.
|
|
589
|
+ */
|
|
590
|
+ ERR_ADM_ANDROID_JNI_NO_PLAYBACK_FREQUENCY = 1109,
|
|
591
|
+ /** 1111: Audio device module: AudioRecord fails to start up. A ROM system
|
|
592
|
+ * error occurs. We recommend the following options to debug:
|
|
593
|
+ * - Restart your App.
|
|
594
|
+ * - Restart your cellphone.
|
|
595
|
+ * - Check your recording permission.
|
|
596
|
+ */
|
|
597
|
+ ERR_ADM_ANDROID_JNI_JAVA_START_RECORD = 1111,
|
|
598
|
+ /** 1112: Audio device module: AudioTrack fails to start up. A ROM system
|
|
599
|
+ * error occurs. We recommend the following options to debug:
|
|
600
|
+ * - Restart your App.
|
|
601
|
+ * - Restart your cellphone.
|
|
602
|
+ * - Check your playback permission.
|
|
603
|
+ */
|
|
604
|
+ ERR_ADM_ANDROID_JNI_JAVA_START_PLAYBACK = 1112,
|
|
605
|
+ /** 1115: Audio device module: AudioRecord returns error. The SDK will
|
|
606
|
+ * automatically restart AudioRecord. */
|
|
607
|
+ ERR_ADM_ANDROID_JNI_JAVA_RECORD_ERROR = 1115,
|
|
608
|
+ /** **DEPRECATED** */
|
|
609
|
+ ERR_ADM_ANDROID_OPENSL_CREATE_ENGINE = 1151,
|
|
610
|
+ /** **DEPRECATED** */
|
|
611
|
+ ERR_ADM_ANDROID_OPENSL_CREATE_AUDIO_RECORDER = 1153,
|
|
612
|
+ /** **DEPRECATED** */
|
|
613
|
+ ERR_ADM_ANDROID_OPENSL_START_RECORDER_THREAD = 1156,
|
|
614
|
+ /** **DEPRECATED** */
|
|
615
|
+ ERR_ADM_ANDROID_OPENSL_CREATE_AUDIO_PLAYER = 1157,
|
|
616
|
+ /** **DEPRECATED** */
|
|
617
|
+ ERR_ADM_ANDROID_OPENSL_START_PLAYER_THREAD = 1160,
|
|
618
|
+ /** 1201: Audio device module: The current device does not support audio
|
|
619
|
+ * input, possibly because you have mistakenly configured the audio session
|
|
620
|
+ * category, or because some other app is occupying the input device. We
|
|
621
|
+ * recommend terminating all background apps and re-joining the channel. */
|
|
622
|
+ ERR_ADM_IOS_INPUT_NOT_AVAILABLE = 1201,
|
|
623
|
+ /** 1206: Audio device module: Cannot activate the Audio Session.*/
|
|
624
|
+ ERR_ADM_IOS_ACTIVATE_SESSION_FAIL = 1206,
|
|
625
|
+ /** 1210: Audio device module: Fails to initialize the audio device,
|
|
626
|
+ * normally because the audio device parameters are wrongly set.*/
|
|
627
|
+ ERR_ADM_IOS_VPIO_INIT_FAIL = 1210,
|
|
628
|
+ /** 1213: Audio device module: Fails to re-initialize the audio device,
|
|
629
|
+ * normally because the audio device parameters are wrongly set.*/
|
|
630
|
+ ERR_ADM_IOS_VPIO_REINIT_FAIL = 1213,
|
|
631
|
+ /** 1214: Fails to re-start up the Audio Unit, possibly because the audio
|
|
632
|
+ * session category is not compatible with the settings of the Audio Unit.
|
|
633
|
+ */
|
|
634
|
+ ERR_ADM_IOS_VPIO_RESTART_FAIL = 1214,
|
|
635
|
+ ERR_ADM_IOS_SET_RENDER_CALLBACK_FAIL = 1219,
|
|
636
|
+ /** **DEPRECATED** */
|
|
637
|
+ ERR_ADM_IOS_SESSION_SAMPLERATR_ZERO = 1221,
|
|
638
|
+ /** 1301: Audio device module: An audio driver abnomality or a
|
|
639
|
+ * compatibility issue occurs. Solutions: Disable and restart the audio
|
|
640
|
+ * device, or reboot the system.*/
|
|
641
|
+ ERR_ADM_WIN_CORE_INIT = 1301,
|
|
642
|
+ /** 1303: Audio device module: A recording driver abnomality or a
|
|
643
|
+ * compatibility issue occurs. Solutions: Disable and restart the audio
|
|
644
|
+ * device, or reboot the system. */
|
|
645
|
+ ERR_ADM_WIN_CORE_INIT_RECORDING = 1303,
|
|
646
|
+ /** 1306: Audio device module: A playout driver abnomality or a
|
|
647
|
+ * compatibility issue occurs. Solutions: Disable and restart the audio
|
|
648
|
+ * device, or reboot the system. */
|
|
649
|
+ ERR_ADM_WIN_CORE_INIT_PLAYOUT = 1306,
|
|
650
|
+ /** 1307: Audio device module: No audio device is available. Solutions:
|
|
651
|
+ * Plug in a proper audio device. */
|
|
652
|
+ ERR_ADM_WIN_CORE_INIT_PLAYOUT_NULL = 1307,
|
|
653
|
+ /** 1309: Audio device module: An audio driver abnomality or a
|
|
654
|
+ * compatibility issue occurs. Solutions: Disable and restart the audio
|
|
655
|
+ * device, or reboot the system. */
|
|
656
|
+ ERR_ADM_WIN_CORE_START_RECORDING = 1309,
|
|
657
|
+ /** 1311: Audio device module: Insufficient system memory or poor device
|
|
658
|
+ * performance. Solutions: Reboot the system or replace the device.
|
|
659
|
+ */
|
|
660
|
+ ERR_ADM_WIN_CORE_CREATE_REC_THREAD = 1311,
|
|
661
|
+ /** 1314: Audio device module: An audio driver abnormality occurs.
|
|
662
|
+ * Solutions:
|
|
663
|
+ * - Disable and then re-enable the audio device.
|
|
664
|
+ * - Reboot the system.
|
|
665
|
+ * - Upgrade your audio card driver.*/
|
|
666
|
+ ERR_ADM_WIN_CORE_CAPTURE_NOT_STARTUP = 1314,
|
|
667
|
+ /** 1319: Audio device module: Insufficient system memory or poor device
|
|
668
|
+ * performance. Solutions: Reboot the system or replace the device. */
|
|
669
|
+ ERR_ADM_WIN_CORE_CREATE_RENDER_THREAD = 1319,
|
|
670
|
+ /** 1320: Audio device module: An audio driver abnormality occurs.
|
|
671
|
+ * Solutions:
|
|
672
|
+ * - Disable and then re-enable the audio device.
|
|
673
|
+ * - Reboot the system.
|
|
674
|
+ * - Replace the device. */
|
|
675
|
+ ERR_ADM_WIN_CORE_RENDER_NOT_STARTUP = 1320,
|
|
676
|
+ /** 1322: Audio device module: No audio sampling device is available.
|
|
677
|
+ * Solutions: Plug in a proper recording device. */
|
|
678
|
+ ERR_ADM_WIN_CORE_NO_RECORDING_DEVICE = 1322,
|
|
679
|
+ /** 1323: Audio device module: No audio playout device is available.
|
|
680
|
+ * Solutions: Plug in a proper playback device.*/
|
|
681
|
+ ERR_ADM_WIN_CORE_NO_PLAYOUT_DEVICE = 1323,
|
|
682
|
+ /** 1351: Audio device module: An audio driver abnormality or a
|
|
683
|
+ * compatibility issue occurs. Solutions:
|
|
684
|
+ * - Disable and then re-enable the audio device.
|
|
685
|
+ * - Reboot the system.
|
|
686
|
+ * - Upgrade your audio card driver. */
|
|
687
|
+ ERR_ADM_WIN_WAVE_INIT = 1351,
|
|
688
|
+ /** 1353: Audio device module: An audio driver abnormality occurs.
|
|
689
|
+ * Solutions:
|
|
690
|
+ * - Disable and then re-enable the audio device.
|
|
691
|
+ * - Reboot the system.
|
|
692
|
+ * - Upgrade your audio card driver. */
|
|
693
|
+ ERR_ADM_WIN_WAVE_INIT_RECORDING = 1353,
|
|
694
|
+ /** 1354: Audio device module: An audio driver abnormality occurs.
|
|
695
|
+ * Solutions:
|
|
696
|
+ * - Disable and then re-enable the audio device.
|
|
697
|
+ * - Reboot the system.
|
|
698
|
+ * - Upgrade your audio card driver. */
|
|
699
|
+ ERR_ADM_WIN_WAVE_INIT_MICROPHONE = 1354,
|
|
700
|
+ /** 1355: Audio device module: An audio driver abnormality occurs.
|
|
701
|
+ * Solutions:
|
|
702
|
+ * - Disable and then re-enable the audio device.
|
|
703
|
+ * - Reboot the system.
|
|
704
|
+ * - Upgrade your audio card driver. */
|
|
705
|
+ ERR_ADM_WIN_WAVE_INIT_PLAYOUT = 1355,
|
|
706
|
+ /** 1356: Audio device module: An audio driver abnormality occurs.
|
|
707
|
+ * Solutions:
|
|
708
|
+ * - Disable and then re-enable the audio device.
|
|
709
|
+ * - Reboot the system.
|
|
710
|
+ * - Upgrade your audio card driver. */
|
|
711
|
+ ERR_ADM_WIN_WAVE_INIT_SPEAKER = 1356,
|
|
712
|
+ /** 1357: Audio device module: An audio driver abnormality occurs.
|
|
713
|
+ * Solutions:
|
|
714
|
+ * - Disable and then re-enable the audio device.
|
|
715
|
+ * - Reboot the system.
|
|
716
|
+ * - Upgrade your audio card driver. */
|
|
717
|
+ ERR_ADM_WIN_WAVE_START_RECORDING = 1357,
|
|
718
|
+ /** 1358: Audio device module: An audio driver abnormality occurs.
|
|
719
|
+ * Solutions:
|
|
720
|
+ * - Disable and then re-enable the audio device.
|
|
721
|
+ * - Reboot the system.
|
|
722
|
+ * - Upgrade your audio card driver.*/
|
|
723
|
+ ERR_ADM_WIN_WAVE_START_PLAYOUT = 1358,
|
|
724
|
+ /** 1359: Audio Device Module: No recording device exists.
|
|
725
|
+ */
|
|
726
|
+ ERR_ADM_NO_RECORDING_DEVICE = 1359,
|
|
727
|
+ /** 1360: Audio Device Module: No playback device exists.
|
|
728
|
+ */
|
|
729
|
+ ERR_ADM_NO_PLAYOUT_DEVICE = 1360,
|
|
730
|
+
|
|
731
|
+ // VDM error code starts from 1500
|
|
732
|
+ /** 1501: Video Device Module: The camera is unauthorized.
|
|
733
|
+ */
|
|
734
|
+ ERR_VDM_CAMERA_NOT_AUTHORIZED = 1501,
|
|
735
|
+
|
|
736
|
+ // VDM error code starts from 1500
|
|
737
|
+ /** **DEPRECATED** 1502: Video Device Module: The camera in use.
|
|
738
|
+
|
|
739
|
+ Deprecated as of v2.4.1. Use LOCAL_VIDEO_STREAM_ERROR_DEVICE_BUSY(3) in the \ref agora::rtc::IRtcEngineEventHandler::onConnectionStateChanged "onConnectionStateChanged" callback instead.
|
|
740
|
+ */
|
|
741
|
+ ERR_VDM_WIN_DEVICE_IN_USE = 1502,
|
|
742
|
+
|
|
743
|
+ // VCM error code starts from 1600
|
|
744
|
+ /** 1600: Video Device Module: An unknown error occurs.
|
|
745
|
+ */
|
|
746
|
+ ERR_VCM_UNKNOWN_ERROR = 1600,
|
|
747
|
+ /** 1601: Video Device Module: An error occurs in initializing the video encoder.
|
|
748
|
+ */
|
|
749
|
+ ERR_VCM_ENCODER_INIT_ERROR = 1601,
|
|
750
|
+ /** 1602: Video Device Module: An error occurs in encoding.
|
|
751
|
+ */
|
|
752
|
+ ERR_VCM_ENCODER_ENCODE_ERROR = 1602,
|
|
753
|
+ /** 1603: Video Device Module: An error occurs in setting the video encoder.
|
|
754
|
+ */
|
|
755
|
+ ERR_VCM_ENCODER_SET_ERROR = 1603,
|
|
756
|
+};
|
|
757
|
+
|
|
758
|
+ /** Output log filter level. */
|
|
759
|
+enum LOG_FILTER_TYPE
|
|
760
|
+{
|
|
761
|
+/** 0: Do not output any log information. */
|
|
762
|
+ LOG_FILTER_OFF = 0,
|
|
763
|
+ /** 0x080f: Output all log information.
|
|
764
|
+ Set your log filter as debug if you want to get the most complete log file. */
|
|
765
|
+ LOG_FILTER_DEBUG = 0x080f,
|
|
766
|
+ /** 0x000f: Output CRITICAL, ERROR, WARNING, and INFO level log information.
|
|
767
|
+ We recommend setting your log filter as this level.
|
|
768
|
+ */
|
|
769
|
+ LOG_FILTER_INFO = 0x000f,
|
|
770
|
+ /** 0x000e: Outputs CRITICAL, ERROR, and WARNING level log information.
|
|
771
|
+ */
|
|
772
|
+ LOG_FILTER_WARN = 0x000e,
|
|
773
|
+ /** 0x000c: Outputs CRITICAL and ERROR level log information. */
|
|
774
|
+ LOG_FILTER_ERROR = 0x000c,
|
|
775
|
+ /** 0x0008: Outputs CRITICAL level log information. */
|
|
776
|
+ LOG_FILTER_CRITICAL = 0x0008,
|
|
777
|
+ LOG_FILTER_MASK = 0x80f,
|
|
778
|
+};
|
|
779
|
+} // namespace agora
|
|
780
|
+
|
|
781
|
+#endif
|