TVIIceOptions Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | TVIIceOptions.h |
Overview
Media connections are established using the ICE (Interactive Connectivity Establishment) protocol. These options allow you to customize how data flows to and from participants, and which protocols to use. You may also provide your own ICE servers, overriding the defaults. https://www.twilio.com/stun-turn
servers
An array of TVIIceServer objects to be used during connection establishment.
@property (nonatomic, copy, nonnull, readonly) NSArray<TVIIceServer*> *serversDeclared In
TVIIceOptions.h
transportPolicy
The transport policy to use. Defaults to TVIIceTransportPolicyAll.
@property (nonatomic, assign, readonly) TVIIceTransportPolicy transportPolicyDeclared In
TVIIceOptions.h
abortOnIceServersTimeout
Whether to abort if ICE servers time out.
@property (nonatomic, assign, readonly) BOOL abortOnIceServersTimeoutDiscussion
If fetching ICE servers times out (due to a restrictive network or a slow network proxy), then, by default, the Video SDK will fallback to using hard-coded STUN servers and continue connecting to the Room. Setting this property to true will instead abort with error 53500, “Unable to acquire configuration”. Defaults to ‘NO’.
Declared In
TVIIceOptions.h
iceServersTimeout
The timeout to wait (before aborting) when acquiring ICE servers. Defaults to 3 seconds.
@property (nonatomic, assign, readonly) NSTimeInterval iceServersTimeoutDeclared In
TVIIceOptions.h
+ options
Creates a default TVIIceOptions instance.
+ (_Null_unspecified instancetype)optionsReturn Value
An instance of TVIIceOptions.
Declared In
TVIIceOptions.h
+ optionsWithBlock:
Creates a TVIIceOptions instance using a builder block that you specify.
+ (nonnull instancetype)optionsWithBlock:(nonnull TVIIceOptionsBuilderBlock)blockParameters
block |
A |
|---|
Return Value
A TVIIceOptions instance created using options set in the builder block.
Declared In
TVIIceOptions.h