public static final class IceServerConfig.IceServer extends Object
Example: IceServer = new IceServer("turn:10.182.13.232:3478", "admin", "password") The allowed formats for the url string are: "TYPE:203.0.113.2:3478" - Indicates a specific IP address and port for the server. "TYPE:relay.example.net:3478" - Indicates a specific host and port for the server; the user agent will look up the IP address in DNS. "TYPE:example.net" - Indicates a specific domain for the server; the user agent will look up the IP address and port in DNS. The "TYPE" is one of: STUN - Indicates a STUN server STUNS - Indicates a STUN server that is to be contacted using a TLS session. TURN - Indicates a TURN server TURNS - Indicates a TURN server that is to be contacted using a TLS session.
Constructor and Description |
---|
IceServer(String url)
Instantiates a new ICE server.
|
IceServer(String url,
String username,
String password) |
IceServer(String url,
String username,
String password,
long lifetime)
Instantiates a new ICE server.
|
Modifier and Type | Method and Description |
---|---|
long |
getLifetime()
Gets the lifetime.
|
String |
getPassword()
Gets the password.
|
String |
getUrl()
Gets the URL.
|
String |
getUsername()
Gets the username.
|
String |
toString() |
public IceServer(String url, String username, String password, long lifetime)
url
- the urlusername
- the usernamepassword
- the passwordlifetime
- the lifetimepublic IceServer(String url)
url
- the urlpublic String getUrl()
public String getUsername()
public String getPassword()
public long getLifetime()