OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |