onIceGatheringChange not been in COMPLETE state

时间:2017-06-15 09:30:59

标签: android webrtc libjingle

After all of the candidates are generated, IceGatheringState should be in COMPLETE state. But IceGatheringState on GATHERING state and only goes to COMPLETE when signaling state become CLOSED.

PeerConnection::OnIceGatheringChange has been called once and IceGatheringState became GATHERING state, but after all the candidates are generated IceGatheringState still on GATHERING state. When the call has disconnected Signaling state becomes CLOSED and then only IceGatheringState in COMPLETE state.

    @Override
    public void onIceGatheringChange(PeerConnection.IceGatheringState newState) {
        Log.d(TAG, "IceGatheringState: " + newState);
    }

Anyone have any idea? I'm using AppRTCMobile app for android webrtc build in Ubuntu 16.0.4

1 个答案:

答案 0 :(得分:4)

Continuous Nomination功能可实现WiFi和无线之间的无缝切换。蜂窝网络。 (仅在本机客户端中可用)

我们可以使用peerConnection configuration来控制它 如果您启用PeerConnection.RTCConfiguration.continualGatheringPolicy,那么PeerConnection将不断寻找网络更改/新候选人。总是你必须将新的候选人发送给远程同伴。