linphone-sdk icon indicating copy to clipboard operation
linphone-sdk copied to clipboard

deferUpdate Timeout

Open TenXu opened this issue 2 years ago • 0 comments

大佬们好,我来自中国,我使用的是linphone android sdk 5.1.2版本;我想询问一个关于deferUpdate超时的问题 A 和 B 在语音通话,这时候A发起升级视频操作,操作代码如下 public void toggleVideo(@NonNull String callId, boolean isVideo) { Call call = getCall(callId); if (call != null) { CallParams params = core.createCallParams(call); if (params != null) { Loges(TAG, "isVideoEnabled = " + call.getParams().isVideoEnabled()); params.setVideoEnabled(isVideo); // params.enableVideo(!call.getCurrentParams().videoEnabled()); } call.update(params); } }

接着B收到了UpdatedByRemote事件回调,我在B这方调用了 call.deferUpdate()

然后,A和B都不做操作,大概过了5秒过后,A又收到了StreamsRunning事件,这个时候B调用 call.acceptUpdate(remoteParams);后,只有B打开了摄像头,但A并没有反应;假如在A收到StreamsRunning事件前调用call.acceptUpdate(remoteParams); 则A和B都可以正常升级为视频通话

我怀疑deferUpdate有个超时时间的设置,但我找遍了API文档都没看到,请大佬们教我,非常感谢!!!

TenXu avatar Feb 23 '23 02:02 TenXu