Remove redundant logging.
And move the backup stun server to the end of the list.
This commit is contained in:
parent
62a2f3d8ba
commit
43cde19071
1 changed files with 1 additions and 2 deletions
|
@ -859,9 +859,7 @@ private void processStateless(@NonNull Function1<WebRtcEphemeralState, WebRtcEph
|
|||
TurnServerInfo turnServerInfo = ApplicationDependencies.getSignalServiceAccountManager().getTurnServerInfo();
|
||||
|
||||
List<PeerConnection.IceServer> iceServers = new LinkedList<>();
|
||||
iceServers.add(PeerConnection.IceServer.builder("stun:stun1.l.google.com:19302").createIceServer());
|
||||
for (String url : turnServerInfo.getUrls()) {
|
||||
Log.i(TAG, "ice_server: " + url);
|
||||
if (url.startsWith("turn")) {
|
||||
iceServers.add(PeerConnection.IceServer.builder(url)
|
||||
.setUsername(turnServerInfo.getUsername())
|
||||
|
@ -871,6 +869,7 @@ private void processStateless(@NonNull Function1<WebRtcEphemeralState, WebRtcEph
|
|||
iceServers.add(PeerConnection.IceServer.builder(url).createIceServer());
|
||||
}
|
||||
}
|
||||
iceServers.add(PeerConnection.IceServer.builder("stun:stun1.l.google.com:19302").createIceServer());
|
||||
|
||||
process((s, p) -> {
|
||||
RemotePeer activePeer = s.getCallInfoState().getActivePeer();
|
||||
|
|
Loading…
Add table
Reference in a new issue