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

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

Issue 2984863002: Adding Android binding for RTCConfiguration::max_ipv6_networks. (Closed)
Patch Set: Rebase Created 3 years, 4 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
« no previous file with comments | « no previous file | webrtc/sdk/android/src/jni/peerconnection_jni.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 public boolean audioJitterBufferFastAccelerate; 190 public boolean audioJitterBufferFastAccelerate;
191 public int iceConnectionReceivingTimeout; 191 public int iceConnectionReceivingTimeout;
192 public int iceBackupCandidatePairPingInterval; 192 public int iceBackupCandidatePairPingInterval;
193 public KeyType keyType; 193 public KeyType keyType;
194 public ContinualGatheringPolicy continualGatheringPolicy; 194 public ContinualGatheringPolicy continualGatheringPolicy;
195 public int iceCandidatePoolSize; 195 public int iceCandidatePoolSize;
196 public boolean pruneTurnPorts; 196 public boolean pruneTurnPorts;
197 public boolean presumeWritableWhenFullyRelayed; 197 public boolean presumeWritableWhenFullyRelayed;
198 public Integer iceCheckMinInterval; 198 public Integer iceCheckMinInterval;
199 public boolean disableIPv6OnWifi; 199 public boolean disableIPv6OnWifi;
200 // By default, PeerConnection will use a limited number of IPv6 network
201 // interfaces, in order to avoid too many ICE candidate pairs being created
202 // and delaying ICE completion.
203 //
204 // Can be set to Integer.MAX_VALUE to effectively disable the limit.
205 public int maxIPv6Networks;
200 public IntervalRange iceRegatherIntervalRange; 206 public IntervalRange iceRegatherIntervalRange;
201 207
208 // TODO(deadbeef): Instead of duplicating the defaults here, we should do
209 // something to pick up the defaults from C++. The Objective-C equivalent
210 // of RTCConfiguration does that.
202 public RTCConfiguration(List<IceServer> iceServers) { 211 public RTCConfiguration(List<IceServer> iceServers) {
203 iceTransportsType = IceTransportsType.ALL; 212 iceTransportsType = IceTransportsType.ALL;
204 bundlePolicy = BundlePolicy.BALANCED; 213 bundlePolicy = BundlePolicy.BALANCED;
205 rtcpMuxPolicy = RtcpMuxPolicy.REQUIRE; 214 rtcpMuxPolicy = RtcpMuxPolicy.REQUIRE;
206 tcpCandidatePolicy = TcpCandidatePolicy.ENABLED; 215 tcpCandidatePolicy = TcpCandidatePolicy.ENABLED;
207 candidateNetworkPolicy = candidateNetworkPolicy.ALL; 216 candidateNetworkPolicy = candidateNetworkPolicy.ALL;
208 this.iceServers = iceServers; 217 this.iceServers = iceServers;
209 audioJitterBufferMaxPackets = 50; 218 audioJitterBufferMaxPackets = 50;
210 audioJitterBufferFastAccelerate = false; 219 audioJitterBufferFastAccelerate = false;
211 iceConnectionReceivingTimeout = -1; 220 iceConnectionReceivingTimeout = -1;
212 iceBackupCandidatePairPingInterval = -1; 221 iceBackupCandidatePairPingInterval = -1;
213 keyType = KeyType.ECDSA; 222 keyType = KeyType.ECDSA;
214 continualGatheringPolicy = ContinualGatheringPolicy.GATHER_ONCE; 223 continualGatheringPolicy = ContinualGatheringPolicy.GATHER_ONCE;
215 iceCandidatePoolSize = 0; 224 iceCandidatePoolSize = 0;
216 pruneTurnPorts = false; 225 pruneTurnPorts = false;
217 presumeWritableWhenFullyRelayed = false; 226 presumeWritableWhenFullyRelayed = false;
218 iceCheckMinInterval = null; 227 iceCheckMinInterval = null;
219 disableIPv6OnWifi = false; 228 disableIPv6OnWifi = false;
229 maxIPv6Networks = 5;
220 iceRegatherIntervalRange = null; 230 iceRegatherIntervalRange = null;
221 } 231 }
222 }; 232 };
223 233
224 private final List<MediaStream> localStreams; 234 private final List<MediaStream> localStreams;
225 private final long nativePeerConnection; 235 private final long nativePeerConnection;
226 private final long nativeObserver; 236 private final long nativeObserver;
227 private List<RtpSender> senders; 237 private List<RtpSender> senders;
228 private List<RtpReceiver> receivers; 238 private List<RtpReceiver> receivers;
229 239
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 private native RtpSender nativeCreateSender(String kind, String stream_id); 390 private native RtpSender nativeCreateSender(String kind, String stream_id);
381 391
382 private native List<RtpSender> nativeGetSenders(); 392 private native List<RtpSender> nativeGetSenders();
383 393
384 private native List<RtpReceiver> nativeGetReceivers(); 394 private native List<RtpReceiver> nativeGetReceivers();
385 395
386 private native boolean nativeStartRtcEventLog(int file_descriptor, int max_siz e_bytes); 396 private native boolean nativeStartRtcEventLog(int file_descriptor, int max_siz e_bytes);
387 397
388 private native void nativeStopRtcEventLog(); 398 private native void nativeStopRtcEventLog();
389 } 399 }
OLDNEW
« no previous file with comments | « no previous file | webrtc/sdk/android/src/jni/peerconnection_jni.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698