Android bindings for ice_regather_interval_range RTCConfiguration option
Bug: webrtc:7969 Change-Id: I3fbb723d35fa6cc4c7b92aa1e155b974e9fb0b55 Reviewed-on: https://chromium-review.googlesource.com/567698 Commit-Queue: Steve Anton <steveanton@webrtc.org> Reviewed-by: Tommi <tommi@webrtc.org> Reviewed-by: Alex Glaznev <glaznev@chromium.org> Reviewed-by: Peter Thatcher <pthatcher@webrtc.org> Cr-Commit-Position: refs/heads/master@{#19062}
This commit is contained in:
@ -159,6 +159,25 @@ public class PeerConnection {
|
||||
/** Java version of PeerConnectionInterface.ContinualGatheringPolicy */
|
||||
public enum ContinualGatheringPolicy { GATHER_ONCE, GATHER_CONTINUALLY }
|
||||
|
||||
/** Java version of rtc::IntervalRange */
|
||||
public static class IntervalRange {
|
||||
private final int min;
|
||||
private final int max;
|
||||
|
||||
public IntervalRange(int min, int max) {
|
||||
this.min = min;
|
||||
this.max = max;
|
||||
}
|
||||
|
||||
public int getMin() {
|
||||
return min;
|
||||
}
|
||||
|
||||
public int getMax() {
|
||||
return max;
|
||||
}
|
||||
}
|
||||
|
||||
/** Java version of PeerConnectionInterface.RTCConfiguration */
|
||||
public static class RTCConfiguration {
|
||||
public IceTransportsType iceTransportsType;
|
||||
@ -178,6 +197,7 @@ public class PeerConnection {
|
||||
public boolean presumeWritableWhenFullyRelayed;
|
||||
public Integer iceCheckMinInterval;
|
||||
public boolean disableIPv6OnWifi;
|
||||
public IntervalRange iceRegatherIntervalRange;
|
||||
|
||||
public RTCConfiguration(List<IceServer> iceServers) {
|
||||
iceTransportsType = IceTransportsType.ALL;
|
||||
@ -197,6 +217,7 @@ public class PeerConnection {
|
||||
presumeWritableWhenFullyRelayed = false;
|
||||
iceCheckMinInterval = null;
|
||||
disableIPv6OnWifi = false;
|
||||
iceRegatherIntervalRange = null;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user