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
This commit is contained in:
		
							parent
							
								
									8475a28dc5
								
							
						
					
					
						commit
						1c625e55a0
					
				@ -272,6 +272,7 @@ public class WebRTCWrapper {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        final PeerConnection.RTCConfiguration rtcConfig = new PeerConnection.RTCConfiguration(iceServers);
 | 
					        final PeerConnection.RTCConfiguration rtcConfig = new PeerConnection.RTCConfiguration(iceServers);
 | 
				
			||||||
        rtcConfig.tcpCandidatePolicy = PeerConnection.TcpCandidatePolicy.DISABLED; //XEP-0176 doesn't support tcp
 | 
					        rtcConfig.tcpCandidatePolicy = PeerConnection.TcpCandidatePolicy.DISABLED; //XEP-0176 doesn't support tcp
 | 
				
			||||||
 | 
					        rtcConfig.continualGatheringPolicy = PeerConnection.ContinualGatheringPolicy.GATHER_CONTINUALLY;
 | 
				
			||||||
        final PeerConnection peerConnection = peerConnectionFactory.createPeerConnection(rtcConfig, peerConnectionObserver);
 | 
					        final PeerConnection peerConnection = peerConnectionFactory.createPeerConnection(rtcConfig, peerConnectionObserver);
 | 
				
			||||||
        if (peerConnection == null) {
 | 
					        if (peerConnection == null) {
 | 
				
			||||||
            throw new InitializationException("Unable to create PeerConnection");
 | 
					            throw new InitializationException("Unable to create PeerConnection");
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user