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