Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bfca549

Browse files
author
xianing
committed
fix rawdata issue
1 parent 2ce744a commit bfca549

File tree

7 files changed

+1536
-356
lines changed

7 files changed

+1536
-356
lines changed

Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/ProcessRawData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ public boolean onCaptureVideoFrame(VideoFrame videoFrame) {
373373

374374
@Override
375375
public boolean onRenderVideoFrame(int uid, VideoFrame videoFrame) {
376-
return false;
376+
return true;
377377
}
378378
};
379379

Android/APIExample/lib-player-helper/libs/PLACEHOLDER

Lines changed: 0 additions & 2 deletions
This file was deleted.

Android/APIExample/lib-player-helper/src/main/cpp/include/AgoraBase.h

Lines changed: 17 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ enum WARN_CODE_TYPE {
196196
/** 1021: Audio device module: the audio capturing frequency is abnormal, which may cause audio freezes. This abnormality is caused by high CPU usage. Agora recommends stopping other apps.
197197
*/
198198
WARN_ADM_RECORD_MALFUNCTION = 1021,
199-
/** 1025: The audio playback or capturing is interrupted by system events (such as a phone call).
199+
/** 1025: The audio capture or playback is interrupted by a system call. If the audio capture or playback is required, remind your user to hang up the phone.
200200
*/
201201
WARN_ADM_CALL_INTERRUPTION = 1025,
202202
/** 1029: During a call, the audio session category should be set to
@@ -212,7 +212,7 @@ enum WARN_CODE_TYPE {
212212
/** 1032: Audio Device Module: The playback audio voice is too low.
213213
*/
214214
WARN_ADM_PLAYOUT_AUDIO_LOWLEVEL = 1032,
215-
/** 1033: Audio device module: The audio capturing device is occupied.
215+
/** 1033: The local audio capture device is occupied by another application. Remind your user to leave the channel, stop the audio capture in another application, and rejoin the channel in sequence.
216216
*/
217217
WARN_ADM_RECORD_AUDIO_IS_ACTIVE = 1033,
218218
/** 1040: Audio device module: An exception occurs with the audio drive.
@@ -239,7 +239,7 @@ enum WARN_CODE_TYPE {
239239
/** 1054: Audio Processing Module: AI NS is closed, this can be triggered by manual settings or by performance detection modules.
240240
*/
241241
WARN_APM_AINS_CLOSED = 1054,
242-
/// @cond
242+
/// @cond nodoc
243243
WARN_ADM_WIN_CORE_NO_RECORDING_DEVICE = 1322,
244244
/// @endcond
245245
/** 1323: Audio device module: No available playback device.
@@ -262,7 +262,7 @@ enum WARN_CODE_TYPE {
262262
/** 1612: The device does not support using super resolution.
263263
*/
264264
WARN_SUPER_RESOLUTION_DEVICE_NOT_SUPPORTED = 1612,
265-
/// @cond
265+
/// @cond nodoc
266266
WARN_RTM_LOGIN_TIMEOUT = 2005,
267267
WARN_RTM_KEEP_ALIVE_TIMEOUT = 2009
268268
/// @endcond
@@ -398,8 +398,7 @@ enum ERROR_CODE_TYPE {
398398
/** 117: The data stream transmission timed out.
399399
*/
400400
ERR_STREAM_MESSAGE_TIMEOUT = 117,
401-
/** **DEPRECATED** 119: Deprecated as of v3.6.1. Use CLIENT_ROLE_CHANGE_FAILED_REASON in the \ref agora::rtc::IRtcEngineEventHandler::onClientRoleChangeFailed "onClientRoleChangeFailed" callback instead.
402-
* Switching roles fail. Please try to rejoin the channel.
401+
/** 119: Switching roles fail. Please try to rejoin the channel.
403402
*/
404403
ERR_SET_CLIENT_ROLE_NOT_AUTHORIZED = 119,
405404
/** 120: Decryption fails. The user may have used a different encryption password to join the channel. Check your settings or try rejoining the channel.
@@ -561,52 +560,39 @@ enum ERROR_CODE_TYPE {
561560
* device.
562561
*/
563562
ERR_ADM_START_LOOPBACK = 1023,
564-
/** 1027: Audio Device Module: No recording permission exists. Check if the
565-
* recording permission is granted.
563+
/** 1027: The application does not have permission to use the microphone. Remind your user to grant permission and rejoin the channel.
566564
*/
567565
ERR_ADM_NO_PERMISSION = 1027,
568-
/** 1033: Audio device module: The device is occupied.
566+
/** 1033: The local audio capture device is occupied by another application. Remind your user to leave the channel, stop the audio capture in another application, and rejoin the channel in sequence.
569567
*/
570568
ERR_ADM_RECORD_AUDIO_IS_ACTIVE = 1033,
571569
/** 1101: Audio device module: A fatal exception occurs.
572570
*/
573571
ERR_ADM_ANDROID_JNI_JAVA_RESOURCE = 1101,
574-
/** 1108: Audio device module: The capturing frequency is lower than 50.
575-
* 0 indicates that the capturing is not yet started. We recommend
576-
* checking your recording permission.
572+
/** 1108: An exception occurred in the audio capture thread. Remind your user to rejoin the channel.
577573
*/
578574
ERR_ADM_ANDROID_JNI_NO_RECORD_FREQUENCY = 1108,
579-
/** 1109: The playback frequency is lower than 50. 0 indicates that the
580-
* playback is not yet started. We recommend checking if you have created
581-
* too many AudioTrack instances.
575+
/** 1109: An exception occurred in the audio playback thread. Remind your user to rejoin the channel.
582576
*/
583577
ERR_ADM_ANDROID_JNI_NO_PLAYBACK_FREQUENCY = 1109,
584-
/** 1111: Audio device module: AudioRecord fails to start up. A ROM system
585-
* error occurs. We recommend the following options to debug:
586-
* - Restart your App.
587-
* - Restart your cellphone.
588-
* - Check your recording permission.
578+
/** 1111: Failed to start the local audio capture. Remind your user to rejoin the channel.
589579
*/
590580
ERR_ADM_ANDROID_JNI_JAVA_START_RECORD = 1111,
591-
/** 1112: Audio device module: AudioTrack 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 playback permission.
581+
/** 1112: Failed to start the local audio playback. Remind your user to rejoin the channel.
596582
*/
597583
ERR_ADM_ANDROID_JNI_JAVA_START_PLAYBACK = 1112,
598584
/** 1115: Audio device module: AudioRecord returns error. The SDK will
599585
* automatically restart AudioRecord. */
600586
ERR_ADM_ANDROID_JNI_JAVA_RECORD_ERROR = 1115,
601587
/** **DEPRECATED** */
602588
ERR_ADM_ANDROID_OPENSL_CREATE_ENGINE = 1151,
603-
/** **DEPRECATED** */
589+
/** 1153: Failed to create Audio Recorder. Remind your user to rejoin the channel. */
604590
ERR_ADM_ANDROID_OPENSL_CREATE_AUDIO_RECORDER = 1153,
605-
/** **DEPRECATED** */
591+
/** 1156: Failed to start the local audio capture. Remind your user to rejoin the channel. */
606592
ERR_ADM_ANDROID_OPENSL_START_RECORDER_THREAD = 1156,
607-
/** **DEPRECATED** */
593+
/** 1157: Failed to create Audio Player. Remind your user to rejoin the channel. */
608594
ERR_ADM_ANDROID_OPENSL_CREATE_AUDIO_PLAYER = 1157,
609-
/** **DEPRECATED** */
595+
/** 1160: Failed to start the local audio playback. Remind your user to rejoin the channel. */
610596
ERR_ADM_ANDROID_OPENSL_START_PLAYER_THREAD = 1160,
611597
/** 1201: Audio device module: The current device does not support audio
612598
* input, possibly because you have mistakenly configured the audio session
@@ -724,7 +710,7 @@ enum ERROR_CODE_TYPE {
724710
ERR_ADM_NO_PLAYOUT_DEVICE = 1360,
725711

726712
// VDM error code starts from 1500
727-
/// @cond
713+
/// @cond nodoc
728714
/** 1500: Video Device Module: There is no camera device.
729715
*/
730716
ERR_VDM_CAMERA_NO_DEVICE = 1500,
@@ -778,7 +764,7 @@ enum LOG_FILTER_TYPE {
778764
LOG_FILTER_ERROR = 0x000c,
779765
/** 0x0008: Outputs CRITICAL level log information. */
780766
LOG_FILTER_CRITICAL = 0x0008,
781-
/// @cond
767+
/// @cond nodoc
782768
LOG_FILTER_MASK = 0x80f,
783769
/// @endcond
784770
};

0 commit comments

Comments
 (0)