浏览代码

fix. typo

matrixbirds 5 年前
父节点
当前提交
f986e668d7
共有 3 个文件被更改,包括 12 次插入11 次删除
  1. 8
    6
      lib/RtcEngine.native.js
  2. 1
    1
      lib/RtcEngine.native.js.map
  3. 3
    4
      src/RtcEngine.native.ts

+ 8
- 6
lib/RtcEngine.native.js 查看文件

@@ -659,14 +659,15 @@ class RtcEngine {
659 659
         Agora.setAudioSessionOperationRestriction();
660 660
     }
661 661
     /**
662
+     * @deprecated
662 663
      * start echo test
663 664
      *
664 665
      * 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.
665 666
      * @returns Promise<{success, value}>
666 667
      */
667
-    static startEchoTest() {
668
-        return Agora.startEchoTest();
669
-    }
668
+    // public static startEchoTest(): Promise<any> {
669
+    //     return Agora.startEchoTest();
670
+    // }
670 671
     /**
671 672
      * stop echo test
672 673
      *
@@ -828,6 +829,7 @@ class RtcEngine {
828 829
         return Agora.removeInjectStreamUrl(options);
829 830
     }
830 831
     /**
832
+     * @deprecated
831 833
      * set video quality
832 834
      *
833 835
      * This method sets the preferences for the video quality. (Live broadcast only).
@@ -835,9 +837,9 @@ class RtcEngine {
835 837
      * @param quality boolean
836 838
      * @returns Promise<{success, value}>
837 839
      */
838
-    static setVideoQualityParameters(quality) {
839
-        return Agora.setVideoQualityParameters(quality);
840
-    }
840
+    // public static setVideoQualityParameters(quality: boolean): Promise<any> {
841
+    //     return Agora.setVideoQualityParameters(quality);
842
+    // }
841 843
     /**
842 844
      * set local video mirror mode
843 845
      *

+ 1
- 1
lib/RtcEngine.native.js.map
文件差异内容过多而无法显示
查看文件


+ 3
- 4
src/RtcEngine.native.ts 查看文件

@@ -771,15 +771,14 @@ class RtcEngine {
771 771
     // }
772 772
 
773 773
     /**
774
-     * @deprecated
775 774
      * stop echo test
776 775
      * 
777 776
      * This method stop launched an audio call test.
778 777
      * @returns Promise<{success, value}>
779 778
      */
780
-    // public static stopEchoTest(): Promise<any> {
781
-    //     return Agora.stopEchoTest();
782
-    // }
779
+    public static stopEchoTest(): Promise<any> {
780
+        return Agora.stopEchoTest();
781
+    }
783 782
 
784 783
     /**
785 784
      * enable lastmile test