Add ADAPTER_TYPE_ANY in AdapterType.
ADAPTER_TYPE_ANY can be used to set the network ignore mask if an application does not want candidates from the any address ports, the underlying network interface types of which are not determined in gathering. The ADAPTER_TYPE_ANY is also given the maximum network cost so that when there are candidates from explicit network interfaces, these candidates from the any address ports as backups, if they ever surface, are not preferred if the other candidates have at least the same network condition. Bug: webrtc:9468 Change-Id: I20c3a40e9a75b8fb34fad741ba5f835ecc3b0d92 Reviewed-on: https://webrtc-review.googlesource.com/85880 Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Reviewed-by: Tommi <tommi@webrtc.org> Commit-Queue: Qingsi Wang <qingsi@google.com> Cr-Commit-Position: refs/heads/master@{#23807}
This commit is contained in:
@ -127,6 +127,7 @@ public class PeerConnectionFactory {
|
||||
static final int ADAPTER_TYPE_CELLULAR = 1 << 2;
|
||||
static final int ADAPTER_TYPE_VPN = 1 << 3;
|
||||
static final int ADAPTER_TYPE_LOOPBACK = 1 << 4;
|
||||
static final int ADAPTER_TYPE_ANY = 1 << 5;
|
||||
|
||||
public int networkIgnoreMask;
|
||||
public boolean disableEncryption;
|
||||
|
||||
Reference in New Issue
Block a user