Add pruneTurnPorts to the java RTCConfiguration.

And adds a log about the flag.

BUG=
R=pthatcher@webrtc.org

Review URL: https://codereview.webrtc.org/2118873002 .

Cr-Commit-Position: refs/heads/master@{#13369}
This commit is contained in:
Honghai Zhang
2016-07-01 14:40:40 -07:00
parent e2e35ca55d
commit d78ecf78c9
3 changed files with 10 additions and 0 deletions

View File

@ -146,6 +146,7 @@ public class PeerConnection {
public KeyType keyType;
public ContinualGatheringPolicy continualGatheringPolicy;
public int iceCandidatePoolSize;
public boolean pruneTurnPorts;
public boolean presumeWritableWhenFullyRelayed;
public RTCConfiguration(List<IceServer> iceServers) {
@ -162,6 +163,7 @@ public class PeerConnection {
keyType = KeyType.ECDSA;
continualGatheringPolicy = ContinualGatheringPolicy.GATHER_ONCE;
iceCandidatePoolSize = 0;
pruneTurnPorts = false;
presumeWritableWhenFullyRelayed = false;
}
};