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

Side by Side Diff: talk/app/webrtc/java/src/org/webrtc/PeerConnection.java

Issue 1455033004: Ping backup connection at a slower rate (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Merge with head, address comments Created 5 years 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 * libjingle 2 * libjingle
3 * Copyright 2013 Google Inc. 3 * Copyright 2013 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 /** Java version of PeerConnectionInterface.RTCConfiguration */ 144 /** Java version of PeerConnectionInterface.RTCConfiguration */
145 public static class RTCConfiguration { 145 public static class RTCConfiguration {
146 public IceTransportsType iceTransportsType; 146 public IceTransportsType iceTransportsType;
147 public List<IceServer> iceServers; 147 public List<IceServer> iceServers;
148 public BundlePolicy bundlePolicy; 148 public BundlePolicy bundlePolicy;
149 public RtcpMuxPolicy rtcpMuxPolicy; 149 public RtcpMuxPolicy rtcpMuxPolicy;
150 public TcpCandidatePolicy tcpCandidatePolicy; 150 public TcpCandidatePolicy tcpCandidatePolicy;
151 public int audioJitterBufferMaxPackets; 151 public int audioJitterBufferMaxPackets;
152 public boolean audioJitterBufferFastAccelerate; 152 public boolean audioJitterBufferFastAccelerate;
153 public int iceConnectionReceivingTimeout; 153 public int iceConnectionReceivingTimeout;
154 public int iceBackupConnectionPingInterval;
154 public KeyType keyType; 155 public KeyType keyType;
155 public ContinualGatheringPolicy continualGatheringPolicy; 156 public ContinualGatheringPolicy continualGatheringPolicy;
156 157
157 public RTCConfiguration(List<IceServer> iceServers) { 158 public RTCConfiguration(List<IceServer> iceServers) {
158 iceTransportsType = IceTransportsType.ALL; 159 iceTransportsType = IceTransportsType.ALL;
159 bundlePolicy = BundlePolicy.BALANCED; 160 bundlePolicy = BundlePolicy.BALANCED;
160 rtcpMuxPolicy = RtcpMuxPolicy.NEGOTIATE; 161 rtcpMuxPolicy = RtcpMuxPolicy.NEGOTIATE;
161 tcpCandidatePolicy = TcpCandidatePolicy.ENABLED; 162 tcpCandidatePolicy = TcpCandidatePolicy.ENABLED;
162 this.iceServers = iceServers; 163 this.iceServers = iceServers;
163 audioJitterBufferMaxPackets = 50; 164 audioJitterBufferMaxPackets = 50;
164 audioJitterBufferFastAccelerate = false; 165 audioJitterBufferFastAccelerate = false;
165 iceConnectionReceivingTimeout = -1; 166 iceConnectionReceivingTimeout = -1;
167 iceBackupConnectionPingInterval = -1;
166 keyType = KeyType.ECDSA; 168 keyType = KeyType.ECDSA;
167 continualGatheringPolicy = ContinualGatheringPolicy.GATHER_ONCE; 169 continualGatheringPolicy = ContinualGatheringPolicy.GATHER_ONCE;
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;
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 287
286 private native void nativeRemoveLocalStream(long nativeStream); 288 private native void nativeRemoveLocalStream(long nativeStream);
287 289
288 private native boolean nativeGetStats( 290 private native boolean nativeGetStats(
289 StatsObserver observer, long nativeTrack); 291 StatsObserver observer, long nativeTrack);
290 292
291 private native List<RtpSender> nativeGetSenders(); 293 private native List<RtpSender> nativeGetSenders();
292 294
293 private native List<RtpReceiver> nativeGetReceivers(); 295 private native List<RtpReceiver> nativeGetReceivers();
294 } 296 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698