Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Side by Side Diff: webrtc/api/android/java/src/org/webrtc/PeerConnection.java

Issue 2295493002: Add a switch to redetermine role when ICE restarts. (Closed)
Patch Set: Address comments Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2013 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 public CandidateNetworkPolicy candidateNetworkPolicy; 141 public CandidateNetworkPolicy candidateNetworkPolicy;
142 public int audioJitterBufferMaxPackets; 142 public int audioJitterBufferMaxPackets;
143 public boolean audioJitterBufferFastAccelerate; 143 public boolean audioJitterBufferFastAccelerate;
144 public int iceConnectionReceivingTimeout; 144 public int iceConnectionReceivingTimeout;
145 public int iceBackupCandidatePairPingInterval; 145 public int iceBackupCandidatePairPingInterval;
146 public KeyType keyType; 146 public KeyType keyType;
147 public ContinualGatheringPolicy continualGatheringPolicy; 147 public ContinualGatheringPolicy continualGatheringPolicy;
148 public int iceCandidatePoolSize; 148 public int iceCandidatePoolSize;
149 public boolean pruneTurnPorts; 149 public boolean pruneTurnPorts;
150 public boolean presumeWritableWhenFullyRelayed; 150 public boolean presumeWritableWhenFullyRelayed;
151 public boolean redetermineRoleOnIceRestart;
151 152
152 public RTCConfiguration(List<IceServer> iceServers) { 153 public RTCConfiguration(List<IceServer> iceServers) {
153 iceTransportsType = IceTransportsType.ALL; 154 iceTransportsType = IceTransportsType.ALL;
154 bundlePolicy = BundlePolicy.BALANCED; 155 bundlePolicy = BundlePolicy.BALANCED;
155 rtcpMuxPolicy = RtcpMuxPolicy.NEGOTIATE; 156 rtcpMuxPolicy = RtcpMuxPolicy.NEGOTIATE;
156 tcpCandidatePolicy = TcpCandidatePolicy.ENABLED; 157 tcpCandidatePolicy = TcpCandidatePolicy.ENABLED;
157 candidateNetworkPolicy = candidateNetworkPolicy.ALL; 158 candidateNetworkPolicy = candidateNetworkPolicy.ALL;
158 this.iceServers = iceServers; 159 this.iceServers = iceServers;
159 audioJitterBufferMaxPackets = 50; 160 audioJitterBufferMaxPackets = 50;
160 audioJitterBufferFastAccelerate = false; 161 audioJitterBufferFastAccelerate = false;
161 iceConnectionReceivingTimeout = -1; 162 iceConnectionReceivingTimeout = -1;
162 iceBackupCandidatePairPingInterval = -1; 163 iceBackupCandidatePairPingInterval = -1;
163 keyType = KeyType.ECDSA; 164 keyType = KeyType.ECDSA;
164 continualGatheringPolicy = ContinualGatheringPolicy.GATHER_ONCE; 165 continualGatheringPolicy = ContinualGatheringPolicy.GATHER_ONCE;
165 iceCandidatePoolSize = 0; 166 iceCandidatePoolSize = 0;
166 pruneTurnPorts = false; 167 pruneTurnPorts = false;
167 presumeWritableWhenFullyRelayed = false; 168 presumeWritableWhenFullyRelayed = false;
169 redetermineRoleOnIceRestart = true;
168 } 170 }
169 }; 171 };
170 172
171 private final List<MediaStream> localStreams; 173 private final List<MediaStream> localStreams;
172 private final long nativePeerConnection; 174 private final long nativePeerConnection;
173 private final long nativeObserver; 175 private final long nativeObserver;
174 private List<RtpSender> senders; 176 private List<RtpSender> senders;
175 private List<RtpReceiver> receivers; 177 private List<RtpReceiver> receivers;
176 178
177 PeerConnection(long nativePeerConnection, long nativeObserver) { 179 PeerConnection(long nativePeerConnection, long nativeObserver) {
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 private native List<RtpSender> nativeGetSenders(); 324 private native List<RtpSender> nativeGetSenders();
323 325
324 private native List<RtpReceiver> nativeGetReceivers(); 326 private native List<RtpReceiver> nativeGetReceivers();
325 327
326 private native boolean nativeStartRtcEventLog( 328 private native boolean nativeStartRtcEventLog(
327 int file_descriptor, int max_size_bytes); 329 int file_descriptor, int max_size_bytes);
328 330
329 private native void nativeStopRtcEventLog(); 331 private native void nativeStopRtcEventLog();
330 332
331 } 333 }
OLDNEW
« no previous file with comments | « no previous file | webrtc/api/android/jni/peerconnection_jni.cc » ('j') | webrtc/api/android/jni/peerconnection_jni.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698