Echo problem in android pjsua2 (pjsip) android
I have built in pjsip for Android and everything is fine. But I only have one problem, which is echoing.
Here is my code in MyApp.java
/* Set media config. */
MediaConfig media_cfg =epConfig.getMedConfig();
media_cfg.setSndAutoCloseTime(0);
media_cfg.setEcOptions(2);
media_cfg.setEcTailLen(100);
Your help would be appreciated.
+3
source to share
1 answer
Try something like:
static class pjmedia_echo_flag {
static long PJMEDIA_ECHO_WEBRTC = 3,
PJMEDIA_ECHO_USE_NOISE_SUPPRESSOR = 128,
PJMEDIA_ECHO_AGGRESSIVENESS_AGGRESSIVE = 0x300;
}
epConfig.getMedConfig().setEcOptions(pjmedia_echo_flag.PJMEDIA_ECHO_WEBRTC|
pjmedia_echo_flag.PJMEDIA_ECHO_USE_NOISE_SUPPRESSOR|
pjmedia_echo_flag.PJMEDIA_ECHO_AGGRESSIVENESS_AGGRESSIVE);
0
user7430250
source
to share