TVIIceServer Class Reference
Inherits from | NSObject |
---|---|
Declared in | TVIIceOptions.h |
url
The URL for the ICE server.
@property (nonnull, nonatomic, readonly, copy) NSString *url
Discussion
Your server URL must begin with either the stun: or turn: scheme. For example, a STUN server could be defined as <stun:stun.company.com:port>.
Declared In
TVIIceOptions.h
username
The user name. Required for TURN servers.
@property (nullable, nonatomic, readonly, copy) NSString *username
Declared In
TVIIceOptions.h
password
The password. Required for TURN servers.
@property (nullable, nonatomic, readonly, copy) NSString *password
Declared In
TVIIceOptions.h
– initWithURL:
Creates a TVIIceServer
.
- (_Null_unspecified instancetype)initWithURL:(nonnull NSString *)serverUrl
Parameters
serverUrl |
The URL for your STUN or TURN server. |
---|
Return Value
A TVIIceServer
object.
Discussion
Creates a TVIIceServer
.
Declared In
TVIIceOptions.h
– initWithURL:username:password:
Creates a TVIIceServer
.
- (_Null_unspecified instancetype)initWithURL:(nonnull NSString *)serverUrl username:(nullable NSString *)username password:(nullable NSString *)password
Parameters
serverUrl |
The URL for your STUN or TURN server. |
---|---|
username |
The username credential for your server. |
password |
The password credential for your server. |
Return Value
A TVIIceServer
object.
Discussion
Creates a TVIIceServer
.
Declared In
TVIIceOptions.h