ProxyConfig
Class that represents an ice server used by the MLWebRTC API.
Public Fields
AutoConfigUrl
Gets url to use for downloading proxy config.
public string AutoConfigUrl { get; set; }
AutoDetect
Whether the proxy will be auto-detected.
public bool AutoDetect { get; set; }
BypassList
Gets urls which should bypass the proxy.
public string BypassList { get; set; }
HostAddress
Gets the proxy server address.
public string HostAddress { get; set; }
HostPort
Gets the proxy server port.
public int HostPort { get; set; }
Password
Gets the password to authenticate the proxy server.
public string Password { get; set; }
Type
Gets the type of this proxy config.
public ProxyType Type { get; set; }
Type | Description |
---|---|
ProxyType | Protocol for the forward proxy. |
Username
Gets the username to authenticate the proxy server.
public string Username { get; set; }
Public Methods
ProxyConfig Create
Factory method used to create a new IceServer object.
public static ProxyConfig Create(
ProxyType type,
string hostAddress,
int hostPort,
string userName =null,
string password =null,
bool autoDetect =false,
string autoConfigUrl =null,
string bypassList =null
)
Parameters
Type | Name | Description |
---|---|---|
ProxyType | uri | The uri of the ice server. |
string | userName | The username to log into the ice server. |
int | password | The password to log into the ice server. |
string | userName | |
string | password | |
bool | autoDetect | |
string | autoConfigUrl | |
string | bypassList |
Returns: An ice candidate object with the given handle.
override string ToString
public override string ToString()