我正在开发一个Cordova插件,它使用原生的android sip进行voip调用。它似乎与W/AudioGroup﹕ device loop timeout
相同我的SipAudioCall.Listener:
@Override
public void onCallEstablished(SipAudioCall call) {
Log.i(LOG_TAG, "Call has been established");
call.startAudio();
call.setSpeakerMode(false);
if (call.isMuted()) {
call.toggleMute();
}
ServiceStatus status = getServiceStatus(call,
call.getLocalProfile());
SipPlugin.this.onSipEvent(status, "onCallEstablished");
}
@Override
public void onCallEnded(SipAudioCall call) {
call.close();
Log.i(LOG_TAG, "Call has been terminated");
ServiceStatus status = getServiceStatus(call,
call.getLocalProfile());
SipPlugin.this.onSipEvent(status, "onCallEnded");
}
建立呼叫时(呼入或拨出呼叫)会显示以下日志:
10-28 16:12:24.444: W/AudioGroup(28686): device loop timeout
它会多次显示。音频在通话的两端进行哈希处理。