From 1c625e55a0765e88ecbe21207c1a68da55467934 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Mon, 25 May 2020 11:11:20 +0200 Subject: [PATCH] set candidate gathering to continually. fixes #3719 This should be good enough to survive some network switches where both networks are online at the same time to allow for some handover (for example when enabling wifi the 3G connection will usually (probably depends on OS) live on for a moment --- .../java/eu/siacs/conversations/xmpp/jingle/WebRTCWrapper.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/eu/siacs/conversations/xmpp/jingle/WebRTCWrapper.java b/src/main/java/eu/siacs/conversations/xmpp/jingle/WebRTCWrapper.java index 6806a8142..4e5fc2641 100644 --- a/src/main/java/eu/siacs/conversations/xmpp/jingle/WebRTCWrapper.java +++ b/src/main/java/eu/siacs/conversations/xmpp/jingle/WebRTCWrapper.java @@ -272,6 +272,7 @@ public class WebRTCWrapper { final PeerConnection.RTCConfiguration rtcConfig = new PeerConnection.RTCConfiguration(iceServers); rtcConfig.tcpCandidatePolicy = PeerConnection.TcpCandidatePolicy.DISABLED; //XEP-0176 doesn't support tcp + rtcConfig.continualGatheringPolicy = PeerConnection.ContinualGatheringPolicy.GATHER_CONTINUALLY; final PeerConnection peerConnection = peerConnectionFactory.createPeerConnection(rtcConfig, peerConnectionObserver); if (peerConnection == null) { throw new InitializationException("Unable to create PeerConnection");