Procházet zdrojové kódy

feat. support 2.4.0 android

matrixbirds před 5 roky
rodič
revize
4d0362b575

+ 1
- 1
android/build.gradle Zobrazit soubor

@@ -50,7 +50,7 @@ android {
50 50
 
51 51
             reset()
52 52
 
53
-            include "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
53
+            include "armeabi-v7a", "arm64-v8a", "x86"
54 54
             // Specify that we do not want an additional universal SDK
55 55
             universalApk false
56 56
         }

+ 23
- 0
android/src/main/java/com/syan/agora/AgoraManager.java Zobrazit soubor

@@ -15,6 +15,7 @@ import java.util.Map;
15 15
 
16 16
 import io.agora.rtc.IRtcEngineEventHandler;
17 17
 import io.agora.rtc.RtcEngine;
18
+import io.agora.rtc.video.BeautyOptions;
18 19
 import io.agora.rtc.video.VideoCanvas;
19 20
 import io.agora.rtc.video.VideoEncoderConfiguration;
20 21
 
@@ -123,6 +124,28 @@ public class AgoraManager {
123 124
                 mRtcEngine.enableAudio();
124 125
             }
125 126
 
127
+            if (options.hasKey("beauty") && null != options.getMap("beauty")) {
128
+                ReadableMap beauty = options.getMap("beauty");
129
+                BeautyOptions beautyOption = new BeautyOptions();
130
+                beautyOption.lighteningContrastLevel = beauty.getInt("lighteningContrastLevel");
131
+                beautyOption.lighteningLevel = (float) beauty.getDouble("lighteningLevel");
132
+                beautyOption.smoothnessLevel = (float) beauty.getDouble("smoothnessLevel");
133
+                beautyOption.rednessLevel = (float) beauty.getDouble("rednessLevel");
134
+                mRtcEngine.setBeautyEffectOptions(true, beautyOption);
135
+            }
136
+
137
+            if (options.hasKey("voice") && null != options.getMap("voice")) {
138
+                ReadableMap voice = options.getMap("voice");
139
+                final String voiceType = voice.getString("type");
140
+                final Integer voiceValue = voice.getInt("value");
141
+                if (voiceType.equals("changer")) {
142
+                    mRtcEngine.setLocalVoiceChanger(voiceValue);
143
+                }
144
+                if (voiceType.equals("reverbPreset")) {
145
+                    mRtcEngine.setLocalVoiceReverbPreset(voiceValue);
146
+                }
147
+            }
148
+
126 149
             if (options.hasKey("videoEncoderConfig") && null != options.getMap("videoEncoderConfig")) {
127 150
                 ReadableMap config = options.getMap("videoEncoderConfig");
128 151
                 VideoEncoderConfiguration encoderConfig = new VideoEncoderConfiguration(

+ 198
- 24
android/src/main/java/com/syan/agora/AgoraModule.java Zobrazit soubor

@@ -25,9 +25,12 @@ import io.agora.rtc.Constants;
25 25
 import io.agora.rtc.IAudioEffectManager;
26 26
 import io.agora.rtc.IRtcEngineEventHandler;
27 27
 import io.agora.rtc.RtcEngine;
28
+import io.agora.rtc.internal.LastmileProbeConfig;
28 29
 import io.agora.rtc.live.LiveInjectStreamConfig;
29 30
 import io.agora.rtc.live.LiveTranscoding;
30 31
 import io.agora.rtc.video.AgoraImage;
32
+import io.agora.rtc.video.BeautyOptions;
33
+import io.agora.rtc.video.CameraCapturerConfiguration;
31 34
 import io.agora.rtc.video.VideoEncoderConfiguration;
32 35
 
33 36
 import static com.facebook.react.bridge.UiThreadUtil.runOnUiThread;
@@ -1451,9 +1454,11 @@ public class AgoraModule extends ReactContextBaseJavaModule {
1451 1454
     }
1452 1455
 
1453 1456
     @ReactMethod
1454
-    public void setLog(String filePath, int level, Promise promise) {
1457
+    public void setLog(String filePath, int level, int size, Promise promise) {
1455 1458
         try {
1456 1459
             int res = 0;
1460
+            res = AgoraManager.getInstance().mRtcEngine.setLogFileSize(size);
1461
+            if (res != 0) throw new ReactNativeAgoraException("setLogFileSize Failed", res);
1457 1462
             res = AgoraManager.getInstance().mRtcEngine.setLogFilter(level);
1458 1463
             if (res != 0) throw new ReactNativeAgoraException("setLogFilter Failed", res);
1459 1464
             res = AgoraManager.getInstance().mRtcEngine.setLogFile(filePath);
@@ -1794,20 +1799,21 @@ public class AgoraModule extends ReactContextBaseJavaModule {
1794 1799
         }
1795 1800
     }
1796 1801
 
1797
-    @ReactMethod
1798
-    public void startEchoTest(Promise promise) {
1799
-        try {
1800
-            int res = AgoraManager.getInstance().mRtcEngine
1801
-                    .startEchoTest();
1802
-            if (res != 0) throw new ReactNativeAgoraException("startEchoTest Failed", res);
1803
-            WritableMap map = Arguments.createMap();
1804
-            map.putBoolean("success", true);
1805
-            map.putInt("value", res);
1806
-            promise.resolve(map);
1807
-        } catch (Exception e) {
1808
-            promise.reject("131009", e);
1809
-        }
1810
-    }
1802
+//  deprecated
1803
+//    @ReactMethod
1804
+//    public void startEchoTest(Promise promise) {
1805
+//        try {
1806
+//            int res = AgoraManager.getInstance().mRtcEngine
1807
+//                    .startEchoTest();
1808
+//            if (res != 0) throw new ReactNativeAgoraException("startEchoTest Failed", res);
1809
+//            WritableMap map = Arguments.createMap();
1810
+//            map.putBoolean("success", true);
1811
+//            map.putInt("value", res);
1812
+//            promise.resolve(map);
1813
+//        } catch (Exception e) {
1814
+//            promise.reject("131009", e);
1815
+//        }
1816
+//    }
1811 1817
 
1812 1818
     @ReactMethod
1813 1819
     public void stopEchoTest(Promise promise) {
@@ -2458,12 +2464,18 @@ public class AgoraModule extends ReactContextBaseJavaModule {
2458 2464
     }
2459 2465
 
2460 2466
     @ReactMethod
2461
-    public void sendStreamMessage(int streamId, String data, Promise promise) {
2467
+    public void sendMessage(ReadableMap options, Promise promise) {
2462 2468
         try {
2463
-            int res = AgoraManager.getInstance().mRtcEngine.sendStreamMessage(streamId, data.getBytes());
2469
+            boolean reliable = options.getBoolean("reliable");
2470
+            boolean ordered = options.getBoolean("ordered");
2471
+            String data = options.getString("data");
2472
+            int streamID = AgoraManager.getInstance().mRtcEngine.createDataStream(reliable, ordered);
2473
+            if (streamID < 0) throw new ReactNativeAgoraException("createDataStream Failed", streamID);
2474
+            int res = AgoraManager.getInstance().mRtcEngine.sendStreamMessage(streamID, data.getBytes("utf8"));
2464 2475
             if (res != 0) throw new ReactNativeAgoraException("sendStreamMessage Failed", res);
2465 2476
             WritableMap map = Arguments.createMap();
2466 2477
             map.putBoolean("success", true);
2478
+            map.putInt("streamID", streamID);
2467 2479
             promise.resolve(map);
2468 2480
         } catch (Exception e) {
2469 2481
             promise.reject(e);
@@ -2480,14 +2492,28 @@ public class AgoraModule extends ReactContextBaseJavaModule {
2480 2492
         }
2481 2493
     }
2482 2494
 
2495
+//    deprecated
2496
+//    @ReactMethod
2497
+//    public void setVideoQualityParameters(boolean quality, Promise promise) {
2498
+//        try {
2499
+//            int res = AgoraManager.getInstance().mRtcEngine.setVideoQualityParameters(quality);
2500
+//            if (res != 0) throw new ReactNativeAgoraException("sendStreamMessage Failed", res);
2501
+//            WritableMap map = Arguments.createMap();
2502
+//            map.putBoolean("success", true);
2503
+//            map.putInt("value", res);
2504
+//            promise.resolve(map);
2505
+//        } catch (Exception e) {
2506
+//            promise.reject(e);
2507
+//        }
2508
+//    }
2509
+
2483 2510
     @ReactMethod
2484
-    public void setVideoQualityParameters(boolean quality, Promise promise) {
2511
+    public void setLocalVideoMirrorMode(int mode, Promise promise) {
2485 2512
         try {
2486
-            int res = AgoraManager.getInstance().mRtcEngine.setVideoQualityParameters(quality);
2487
-            if (res != 0) throw new ReactNativeAgoraException("sendStreamMessage Failed", res);
2513
+            int res = AgoraManager.getInstance().mRtcEngine.setLocalVideoMirrorMode(mode);
2514
+            if (res != 0) throw new ReactNativeAgoraException("setLocalVideoMirrorMode Failed", res);
2488 2515
             WritableMap map = Arguments.createMap();
2489 2516
             map.putBoolean("success", true);
2490
-            map.putInt("value", res);
2491 2517
             promise.resolve(map);
2492 2518
         } catch (Exception e) {
2493 2519
             promise.reject(e);
@@ -2495,10 +2521,67 @@ public class AgoraModule extends ReactContextBaseJavaModule {
2495 2521
     }
2496 2522
 
2497 2523
     @ReactMethod
2498
-    public void setLocalVideoMirrorMode(int mode, Promise promise) {
2524
+    public void setBeautyEffectOptions(boolean enabled, ReadableMap options, Promise promise) {
2499 2525
         try {
2500
-            int res = AgoraManager.getInstance().mRtcEngine.setLocalVideoMirrorMode(mode);
2501
-            if (res != 0) throw new ReactNativeAgoraException("setLocalVideoMirrorMode Failed", res);
2526
+            BeautyOptions beautyOption = new BeautyOptions();
2527
+            beautyOption.lighteningContrastLevel = options.getInt("lighteningContrastLevel");
2528
+            beautyOption.lighteningLevel = (float) options.getDouble("lighteningLevel");
2529
+            beautyOption.smoothnessLevel = (float) options.getDouble("smoothnessLevel");
2530
+            beautyOption.rednessLevel = (float) options.getDouble("rednessLevel");
2531
+            int res = AgoraManager.getInstance().mRtcEngine.setBeautyEffectOptions(true, beautyOption);
2532
+            if (res != 0) throw new ReactNativeAgoraException("setBeautyEffectOptions Failed", res);
2533
+            WritableMap map = Arguments.createMap();
2534
+            map.putBoolean("success", true);
2535
+            promise.resolve(map);
2536
+        } catch (Exception e) {
2537
+            promise.reject(e);
2538
+        }
2539
+    }
2540
+
2541
+    @ReactMethod
2542
+    public void setLocalVoiceChanger(int voiceChanger, Promise promise) {
2543
+        try {
2544
+            int res = AgoraManager.getInstance().mRtcEngine.setLocalVoiceChanger(voiceChanger);
2545
+            if (res != 0) throw new ReactNativeAgoraException("setLocalVoiceChanger Failed", res);
2546
+            WritableMap map = Arguments.createMap();
2547
+            map.putBoolean("success", true);
2548
+            promise.resolve(map);
2549
+        } catch (Exception e) {
2550
+            promise.reject(e);
2551
+        }
2552
+    }
2553
+
2554
+    @ReactMethod
2555
+    public void setLocalVoiceReverbPreset(int preset, Promise promise) {
2556
+        try {
2557
+            int res = AgoraManager.getInstance().mRtcEngine.setLocalVoiceReverbPreset(preset);
2558
+            if (res != 0) throw new ReactNativeAgoraException("setLocalVoiceReverbPreset Failed", res);
2559
+            WritableMap map = Arguments.createMap();
2560
+            map.putBoolean("success", true);
2561
+            promise.resolve(map);
2562
+        } catch (Exception e) {
2563
+            promise.reject(e);
2564
+        }
2565
+    }
2566
+
2567
+    @ReactMethod
2568
+    public void enableSoundPositionIndication(boolean enabled, Promise promise) {
2569
+        try {
2570
+            int res = AgoraManager.getInstance().mRtcEngine.enableSoundPositionIndication(enabled);
2571
+            if (res != 0) throw new ReactNativeAgoraException("enableSoundPositionIndication Failed", res);
2572
+            WritableMap map = Arguments.createMap();
2573
+            map.putBoolean("success", true);
2574
+            promise.resolve(map);
2575
+        } catch (Exception e) {
2576
+            promise.reject(e);
2577
+        }
2578
+    }
2579
+
2580
+    @ReactMethod
2581
+    public void setRemoteVoicePosition(int uid, int pan, int gain, Promise promise) {
2582
+        try {
2583
+            int res = AgoraManager.getInstance().mRtcEngine.setRemoteVoicePosition(uid, pan, gain);
2584
+            if (res != 0) throw new ReactNativeAgoraException("setRemoteVoicePosition Failed", res);
2502 2585
             WritableMap map = Arguments.createMap();
2503 2586
             map.putBoolean("success", true);
2504 2587
             promise.resolve(map);
@@ -2507,6 +2590,97 @@ public class AgoraModule extends ReactContextBaseJavaModule {
2507 2590
         }
2508 2591
     }
2509 2592
 
2593
+    @ReactMethod
2594
+    public void startLastmileProbeTest(ReadableMap config, Promise promise) {
2595
+        try {
2596
+            LastmileProbeConfig probeConfig = new LastmileProbeConfig();
2597
+            probeConfig.probeUplink = config.getBoolean("probeUplink");
2598
+            probeConfig.probeDownlink = config.getBoolean("probeDownlink");
2599
+            probeConfig.expectedDownlinkBitrate = config.getInt("expectedDownlinkBitrate");
2600
+            probeConfig.expectedUplinkBitrate = config.getInt("expectedUplinkBitrate");
2601
+            int res = AgoraManager.getInstance().mRtcEngine.startLastmileProbeTest(probeConfig);
2602
+            if (res != 0) throw new ReactNativeAgoraException("startLastmileProbeTest Failed", res);
2603
+            WritableMap map = Arguments.createMap();
2604
+            map.putBoolean("success", true);
2605
+            promise.resolve(map);
2606
+        } catch (Exception e) {
2607
+            promise.reject(e);
2608
+        }
2609
+    }
2610
+
2611
+    @ReactMethod
2612
+    public void stopLastmileProbeTest(Promise promise) {
2613
+        try {
2614
+            int res = AgoraManager.getInstance().mRtcEngine.stopLastmileProbeTest();
2615
+            if (res != 0) throw new ReactNativeAgoraException("stopLastmileProbeTest Failed", res);
2616
+            WritableMap map = Arguments.createMap();
2617
+            map.putBoolean("success", true);
2618
+            promise.resolve(map);
2619
+        } catch (Exception e) {
2620
+            promise.reject(e);
2621
+        }
2622
+    }
2623
+
2624
+    @ReactMethod
2625
+    public void setRemoteUserPriority(int uid, int userPrority, Promise promise) {
2626
+        try {
2627
+            int res = AgoraManager.getInstance().mRtcEngine.setRemoteUserPriority(uid, userPrority);
2628
+            if (res != 0) throw new ReactNativeAgoraException("setRemoteUserPriority Failed", res);
2629
+            WritableMap map = Arguments.createMap();
2630
+            map.putBoolean("success", true);
2631
+            promise.resolve(map);
2632
+        } catch (Exception e) {
2633
+            promise.reject(e);
2634
+        }
2635
+    }
2636
+
2637
+    @ReactMethod
2638
+    public void startEchoTestWithInterval(int interval, Promise promise) {
2639
+        try {
2640
+            int res = AgoraManager.getInstance().mRtcEngine.startEchoTest(interval);
2641
+            if (res != 0) throw new ReactNativeAgoraException("startEchoTestWithInterval Failed", res);
2642
+            WritableMap map = Arguments.createMap();
2643
+            map.putBoolean("success", true);
2644
+            promise.resolve(map);
2645
+        } catch (Exception e) {
2646
+            promise.reject(e);
2647
+        }
2648
+    }
2649
+
2650
+    @ReactMethod
2651
+    public void setCameraCapturerConfiguration(ReadableMap options, Promise promise) {
2652
+        try {
2653
+            CameraCapturerConfiguration.CAPTURER_OUTPUT_PREFERENCE preference = CameraCapturerConfiguration.CAPTURER_OUTPUT_PREFERENCE.CAPTURER_OUTPUT_PREFERENCE_AUTO;
2654
+            switch (options.getInt("preference")) {
2655
+                case 0: {
2656
+                    preference = CameraCapturerConfiguration.CAPTURER_OUTPUT_PREFERENCE.CAPTURER_OUTPUT_PREFERENCE_AUTO;
2657
+                    break;
2658
+                }
2659
+                case 1: {
2660
+                    preference = CameraCapturerConfiguration.CAPTURER_OUTPUT_PREFERENCE.CAPTURER_OUTPUT_PREFERENCE_PERFORMANCE;
2661
+                    break;
2662
+                }
2663
+                case 2: {
2664
+                    preference = CameraCapturerConfiguration.CAPTURER_OUTPUT_PREFERENCE.CAPTURER_OUTPUT_PREFERENCE_PREVIEW;
2665
+                    break;
2666
+                }
2667
+            }
2668
+            CameraCapturerConfiguration config = new CameraCapturerConfiguration(preference);
2669
+
2670
+            int res = AgoraManager.getInstance().mRtcEngine.setCameraCapturerConfiguration(config);
2671
+            if (res != 0) throw new ReactNativeAgoraException("setCameraCapturerConfiguration Failed", res);
2672
+            WritableMap map = Arguments.createMap();
2673
+            map.putBoolean("success", true);
2674
+            promise.resolve(map);
2675
+        } catch (Exception e) {
2676
+            promise.reject(e);
2677
+        }
2678
+    }
2679
+
2680
+
2681
+
2682
+    @ReactMethod
2683
+
2510 2684
     private void sendEvent(ReactContext reactContext,
2511 2685
                            String eventName,
2512 2686
                            @Nullable WritableMap params) {

+ 15
- 14
lib/RtcEngine.native.js Zobrazit soubor

@@ -990,12 +990,13 @@ class RtcEngine {
990 990
      *
991 991
      * This method sets the log file generated path and specified the log level.
992 992
      *
993
-     * @param filepath
994
-     * @param level
993
+     * @param filepath string
994
+     * @param level enum
995
+     * @param maxfileSize integer (KB)
995 996
      * @returns Promise<{success, value}>
996 997
      */
997
-    static setLog(filepath, level) {
998
-        return Agora.setLog(filepath, level);
998
+    static setLog(filepath, level, maxfileSize) {
999
+        return Agora.setLog(filepath, level, maxfileSize);
999 1000
     }
1000 1001
     /**
1001 1002
      * send stream message
@@ -1070,7 +1071,7 @@ class RtcEngine {
1070 1071
      *
1071 1072
      * @param enable boolean
1072 1073
      * @param options {@link BeautyOptions}
1073
-     * @returns operate result boolean
1074
+     * @returns Promise<{success, value}>
1074 1075
      */
1075 1076
     static setBeautyEffectOptions(enabled, options) {
1076 1077
         return Agora.setBeautyEffectOptions(enabled, options);
@@ -1090,7 +1091,7 @@ class RtcEngine {
1090 1091
      *          5: "Ethereal vocal effects.",
1091 1092
      *          6: "Hulk’s voice."
1092 1093
      *      ]
1093
-     * @returns result boolean
1094
+     * @returns Promise<{success, value}>
1094 1095
      */
1095 1096
     static setLocalVoiceChanger(voiceChanger) {
1096 1097
         return Agora.setLocalVoiceChanger(voiceChanger);
@@ -1101,7 +1102,7 @@ class RtcEngine {
1101 1102
      * This method sets the preset local voice reverberation effect.
1102 1103
      *
1103 1104
      * @param preset integer
1104
-     * @returns result boolean
1105
+     * @returns Promise<{success, value}>
1105 1106
      */
1106 1107
     static setLocalVoiceReverbPreset(preset) {
1107 1108
         return Agora.setLocalVoiceReverbPreset(preset);
@@ -1112,7 +1113,7 @@ class RtcEngine {
1112 1113
      * This method enables/disables stereo panning for remote users.
1113 1114
      *
1114 1115
      * @param enabled boolean
1115
-     * @returns result boolean
1116
+     * @returns Promise<{success, value}>
1116 1117
      */
1117 1118
     static enableSoundPositionIndication(enabled) {
1118 1119
         return Agora.enableSoundPositionIndication(enabled);
@@ -1129,7 +1130,7 @@ class RtcEngine {
1129 1130
      *  -1.0: the remote sound comes from the left.
1130 1131
      *  1.0: the remote sound comes from the right.
1131 1132
      * @param gain float | Gain of the remote user. The value ranges from 0.0 to 100.0. The default value is 100.0 (the original gain of the remote user). The smaller the value, the less the gain.
1132
-     * @returns result boolean
1133
+     * @returns Promise<{success, value}>
1133 1134
      */
1134 1135
     static setRemoteVoicePosition(uid, pan, gain) {
1135 1136
         return Agora.setRemoteVoicePosition(uid, pan, gain);
@@ -1143,7 +1144,7 @@ class RtcEngine {
1143 1144
      *
1144 1145
      * @event onLastmileQuality: the SDK triggers this callback within two seconds depending on the network conditions. This callback rates the network conditions with a score and is more closely linked to the user experience.
1145 1146
      * @event onLastmileProbeResult: the SDK triggers this callback within 30 seconds depending on the network conditions. This callback returns the real-time statistics of the network conditions and is more objective.
1146
-     * @returns result boolean
1147
+     * @returns Promise<{success, value}>
1147 1148
      */
1148 1149
     static startLastmileProbeTest(config) {
1149 1150
         return Agora.startLastmileProbeTest(config);
@@ -1153,7 +1154,7 @@ class RtcEngine {
1153 1154
      *
1154 1155
      * This method stop the lastmile probe test.
1155 1156
      *
1156
-     * @returns result boolean
1157
+     * @returns Promise<{success, value}>
1157 1158
      */
1158 1159
     static stopLastmileProbeTest() {
1159 1160
         return Agora.stopLastmileProbeTest();
@@ -1167,7 +1168,7 @@ class RtcEngine {
1167 1168
      * @param uid number
1168 1169
      * @param userPriority number | The value range is  [50 is "user's priority is hgih", 100 is "the default user's priority is normal"]
1169 1170
      *
1170
-     * @returns result boolean
1171
+     * @returns Promise<{success, value}>
1171 1172
      */
1172 1173
     static setRemoteUserPriority(uid, userPrority) {
1173 1174
         return Agora.setRemoteUserPriority(uid, userPrority);
@@ -1184,7 +1185,7 @@ class RtcEngine {
1184 1185
      *
1185 1186
      * @param interval number
1186 1187
      *
1187
-     * @returns result boolean
1188
+     * @returns Promise<{success, value}>
1188 1189
      */
1189 1190
     static startEchoTestWithInterval(interval) {
1190 1191
         return Agora.startEchoTestWithInterval(interval);
@@ -1202,7 +1203,7 @@ class RtcEngine {
1202 1203
      *
1203 1204
      * @param config {@link CameraCapturerConfiguration}
1204 1205
      *
1205
-     * @returns result boolean
1206
+     * @returns Promise<{success, value}>
1206 1207
      */
1207 1208
     static setCameraCapturerConfiguration(config) {
1208 1209
         return Agora.setCameraCapturerConfiguration(config);

+ 1
- 1
lib/RtcEngine.native.js.map
Diff nebyl zobrazen, protože je příliš veliký
Zobrazit soubor


+ 12
- 19
src/RtcEngine.native.ts Zobrazit soubor

@@ -760,24 +760,26 @@ class RtcEngine {
760 760
      }
761 761
 
762 762
     /**
763
+     * @deprecated
763 764
      * start echo test
764 765
      * 
765 766
      * This method launches an audio call test to determine whether the audio devices (for example, headset and speaker) and the network connection are working properly.
766 767
      * @returns Promise<{success, value}>
767 768
      */
768
-    public static startEchoTest(): Promise<any> {
769
-        return Agora.startEchoTest();
770
-    }
769
+    // public static startEchoTest(): Promise<any> {
770
+    //     return Agora.startEchoTest();
771
+    // }
771 772
 
772 773
     /**
774
+     * @deprecated
773 775
      * stop echo test
774 776
      * 
775 777
      * This method stop launched an audio call test.
776 778
      * @returns Promise<{success, value}>
777 779
      */
778
-    public static stopEchoTest(): Promise<any> {
779
-        return Agora.stopEchoTest();
780
-    }
780
+    // public static stopEchoTest(): Promise<any> {
781
+    //     return Agora.stopEchoTest();
782
+    // }
781 783
 
782 784
     /**
783 785
      * enable lastmile test
@@ -945,6 +947,7 @@ class RtcEngine {
945 947
     }
946 948
 
947 949
     /**
950
+     * @deprecated
948 951
      * set video quality 
949 952
      * 
950 953
      * This method sets the preferences for the video quality. (Live broadcast only).
@@ -952,9 +955,9 @@ class RtcEngine {
952 955
      * @param quality boolean
953 956
      * @returns Promise<{success, value}> 
954 957
      */
955
-    public static setVideoQualityParameters(quality: boolean): Promise<any> {
956
-        return Agora.setVideoQualityParameters(quality);
957
-    }
958
+    // public static setVideoQualityParameters(quality: boolean): Promise<any> {
959
+    //     return Agora.setVideoQualityParameters(quality);
960
+    // }
958 961
 
959 962
     /**
960 963
      * set local video mirror mode
@@ -1357,16 +1360,6 @@ class RtcEngine {
1357 1360
     static setCameraCapturerConfiguration(config: CameraCapturerConfiguration): Promise<any> {
1358 1361
         return Agora.setCameraCapturerConfiguration(config);
1359 1362
     }
1360
-
1361
-    /**
1362
-     * set the log file size (KB).
1363
-     * TODO: setLogFileSize
1364
-     * This method will set the log file size
1365
-     */
1366
-
1367
-
1368
-    
1369
-
1370 1363
 }
1371 1364
 
1372 1365