我已经集成了Android的pjsip,一切都很好。但我只有一个问题就是回声。
以下是MyApp.java
/* Set media config. */
MediaConfig media_cfg =epConfig.getMedConfig();
media_cfg.setSndAutoCloseTime(0);
media_cfg.setEcOptions(2);
media_cfg.setEcTailLen(100);
我们将非常感谢您的帮助。
答案 0 :(得分:0)
尝试类似:
import java.util.*;
public class CapatiliseAndReverse {
public static void reverseCharacter(String input) {
String result = "";
StringBuilder revString = null;
String split[] = input.split(" ");
for (int i = 0; i < split.length; i++) {
revString = new StringBuilder(split[i]);
revString = revString.reverse();
for (int index = 0; index < revString.length(); index++) {
char c = revString.charAt(index);
if (Character.isLowerCase(revString.charAt(0))) {
revString.setCharAt(0, Character.toUpperCase(c));
}
if (Character.isUpperCase(c)) {
revString.setCharAt(index, Character.toLowerCase(c));
}
}
result = result + " " + revString;
}
System.out.println(result.trim());
}
public static void main(String[] args) {
//System.out.println(reverseCharacter("old is GlOd"));
Scanner sc = new Scanner(System.in);
reverseCharacter(sc.nextLine());
}
}