|
@@ -663,8 +663,8 @@ class RtcEngine {
|
663
|
663
|
* @param callback
|
664
|
664
|
* @return any
|
665
|
665
|
*/
|
666
|
|
- public static methodisSpeakerphoneEnabled(callback: Callback<any>): any {
|
667
|
|
- return Agora.methodisSpeakerphoneEnabled(callback);
|
|
666
|
+ public static isSpeakerphoneEnabled(callback: Callback<any>): any {
|
|
667
|
+ return Agora.isSpeakerphoneEnabled(callback);
|
668
|
668
|
}
|
669
|
669
|
|
670
|
670
|
/**
|
|
@@ -870,7 +870,7 @@ class RtcEngine {
|
870
|
870
|
/**
|
871
|
871
|
* stop play effect for audio mixing
|
872
|
872
|
*
|
873
|
|
- * This methods stops the specified effect for audio mixing file by soundid.
|
|
873
|
+ * This methods stops the specified effect for audio mixing file by soundId.
|
874
|
874
|
* @param sounid
|
875
|
875
|
* @return Promise<{success, value}>
|
876
|
876
|
*/
|
|
@@ -891,20 +891,20 @@ class RtcEngine {
|
891
|
891
|
/**
|
892
|
892
|
* preload effect for audio mixing file.
|
893
|
893
|
*
|
894
|
|
- * This methods preloads the specified audio mixing file to memory by the soundid
|
895
|
|
- * @param soundid
|
896
|
|
- * @param filepath
|
|
894
|
+ * This methods preloads the specified audio mixing file to memory by the soundId
|
|
895
|
+ * @param soundId
|
|
896
|
+ * @param filePath
|
897
|
897
|
* @return Promise<{success, value}>
|
898
|
898
|
*/
|
899
|
|
- public static preloadEffect(soundId: number, filepath: string): Promise<any> {
|
900
|
|
- return Agora.preloadEffect(soundId, filepath);
|
|
899
|
+ public static preloadEffect(soundId: number, filePath: string): Promise<any> {
|
|
900
|
+ return Agora.preloadEffect(soundId, filePath);
|
901
|
901
|
}
|
902
|
902
|
|
903
|
903
|
/**
|
904
|
904
|
* unload effect
|
905
|
905
|
*
|
906
|
|
- * This methods unload the already loaded audio mixing file from memory by the soundid.
|
907
|
|
- * @param soundid
|
|
906
|
+ * This methods unload the already loaded audio mixing file from memory by the soundId.
|
|
907
|
+ * @param soundId
|
908
|
908
|
* @return Promise<{success, value}>
|
909
|
909
|
*/
|
910
|
910
|
public static unloadEffect(soundId: number): Promise<any> {
|
|
@@ -912,10 +912,10 @@ class RtcEngine {
|
912
|
912
|
}
|
913
|
913
|
|
914
|
914
|
/**
|
915
|
|
- * pause the specified effect for audio mixing by soundid
|
|
915
|
+ * pause the specified effect for audio mixing by soundId
|
916
|
916
|
*
|
917
|
|
- * This method pauses the specified effect for audio mixing by soundid.
|
918
|
|
- * @param soundid
|
|
917
|
+ * This method pauses the specified effect for audio mixing by soundId.
|
|
918
|
+ * @param soundId
|
919
|
919
|
* @return Promise<{success, value}>
|
920
|
920
|
*/
|
921
|
921
|
public static pauseEffect(soundId: number): Promise<any> {
|
|
@@ -926,7 +926,7 @@ class RtcEngine {
|
926
|
926
|
* pause all effects for audio mixing
|
927
|
927
|
*
|
928
|
928
|
* This method pause all effects for audio mixing.
|
929
|
|
- * @param soundid
|
|
929
|
+ * @param soundId
|
930
|
930
|
* @return Promise<{success, value}>
|
931
|
931
|
*/
|
932
|
932
|
public static pauseAllEffects(): Promise<any> {
|
|
@@ -934,10 +934,10 @@ class RtcEngine {
|
934
|
934
|
}
|
935
|
935
|
|
936
|
936
|
/**
|
937
|
|
- * resume audio mixing effect by the specified soundid
|
|
937
|
+ * resume audio mixing effect by the specified soundId
|
938
|
938
|
*
|
939
|
|
- * This method resumes audio mixing effect by the specified soundid
|
940
|
|
- * @param soundid
|
|
939
|
+ * This method resumes audio mixing effect by the specified soundId
|
|
940
|
+ * @param soundId
|
941
|
941
|
* @return Promise<{success, value}>
|
942
|
942
|
*/
|
943
|
943
|
public static resumeEffect(soundId: number): Promise<any> {
|
|
@@ -1089,7 +1089,7 @@ class RtcEngine {
|
1089
|
1089
|
*
|
1090
|
1090
|
* @return Promise<{success, value}>
|
1091
|
1091
|
*/
|
1092
|
|
- public static removclearVideoWatermarkse(): Promise<any> {
|
|
1092
|
+ public static clearVideoWatermarks(): Promise<any> {
|
1093
|
1093
|
return Agora.clearVideoWatermarks();
|
1094
|
1094
|
}
|
1095
|
1095
|
|
|
@@ -1317,13 +1317,13 @@ class RtcEngine {
|
1317
|
1317
|
*
|
1318
|
1318
|
* This method sets the log file generated path and specified the log level.
|
1319
|
1319
|
*
|
1320
|
|
- * @param filepath string
|
|
1320
|
+ * @param filePath string
|
1321
|
1321
|
* @param level enum
|
1322
|
1322
|
* @param maxfileSize integer (KB)
|
1323
|
1323
|
* @return Promise<{success, value}>
|
1324
|
1324
|
*/
|
1325
|
|
- public static setLog(filepath: string, level: number, maxfileSize: number): Promise<any> {
|
1326
|
|
- return Agora.setLog(filepath, level, maxfileSize)
|
|
1325
|
+ public static setLog(filePath: string, level: number, maxfileSize: number): Promise<any> {
|
|
1326
|
+ return Agora.setLog(filePath, level, maxfileSize)
|
1327
|
1327
|
}
|
1328
|
1328
|
|
1329
|
1329
|
/**
|
|
@@ -1498,13 +1498,13 @@ class RtcEngine {
|
1498
|
1498
|
*
|
1499
|
1499
|
* This method sets the priority of a remote user's media stream.
|
1500
|
1500
|
* @param uid number
|
1501
|
|
- * @param userPriority number | The value range is [50 is "user's priority is hgih", 100 is "the default user's priority is normal"]
|
|
1501
|
+ * @param userPriority number | The value range is [50 is "user's priority is high", 100 is "the default user's priority is normal"]
|
1502
|
1502
|
*
|
1503
|
1503
|
* @return Promise<any>
|
1504
|
1504
|
*/
|
1505
|
|
- static setRemoteUserPriority(uid: number, userPrority: number): Promise<any> {
|
|
1505
|
+ static setRemoteUserPriority(uid: number, userPriority: number): Promise<any> {
|
1506
|
1506
|
let uint32 = Platform.OS === 'android' ? this.Uint32ToInt32(uid) : uid;
|
1507
|
|
- return Agora.setRemoteUserPriority(uint32, userPrority);
|
|
1507
|
+ return Agora.setRemoteUserPriority(uint32, userPriority);
|
1508
|
1508
|
}
|
1509
|
1509
|
|
1510
|
1510
|
/**
|
|
@@ -1512,7 +1512,7 @@ class RtcEngine {
|
1512
|
1512
|
*
|
1513
|
1513
|
* note:
|
1514
|
1514
|
* Call this method before joining a channel.
|
1515
|
|
- * After calling this method, call the stopEchoTest method to end the test. Otherwise, the app cannot run the next echo test, or call the joinchannel method.
|
|
1515
|
+ * After calling this method, call the stopEchoTest method to end the test. Otherwise, the app cannot run the next echo test, or call the joinChannel method.
|
1516
|
1516
|
* In the Live-broadcast profile, only a host can call this method.
|
1517
|
1517
|
* This method will start an audio call test with interval parameter.
|
1518
|
1518
|
* In the audio call test, you record your voice. If the recording plays back within the set time interval, the audio devices and the network connection are working properly.
|