Skip to main content
Version: 20 Mar 2024

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; }

TypeDescription
ProxyTypeProtocol 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

TypeNameDescription
ProxyTypeuriThe uri of the ice server.
stringuserNameThe username to log into the ice server.
intpasswordThe password to log into the ice server.
stringuserName
stringpassword
boolautoDetect
stringautoConfigUrl
stringbypassList

Returns: An ice candidate object with the given handle.


override string ToString

public override string ToString()