TVOIceOptions
Objective-C
@interface TVOIceOptions : NSObject
Swift
class TVOIceOptions : NSObject
TVOIceOptions specifies custom media connectivity configurations.
@discussion 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
-
An array of
TVOIceServerobjects to be used during connection establishment.Declaration
Objective-C
@property (nonatomic, copy, readonly, nonnull) NSArray<TVOIceServer *> *servers;Swift
var servers: [TVOIceServer] { get } -
The transport policy to use. Defaults to
TVOIceTransportPolicyAll.Declaration
Objective-C
@property (nonatomic, readonly) TVOIceTransportPolicy transportPolicy;Swift
var transportPolicy: TVOIceTransportPolicy { get } -
@brief Creates a default
TVOIceOptionsinstance.Declaration
Objective-C
+ (instancetype _Null_unspecified)options;Return Value
An instance of
TVOIceOptions. -
@brief Creates a
TVOIceOptionsinstance using a builder block that you specify.Declaration
Objective-C
+ (nonnull instancetype)optionsWithBlock: (nonnull TVOIceOptionsBuilderBlock)block;Swift
convenience init(block: @escaping TVOIceOptionsBuilderBlock)Parameters
blockA
TVOIceOptionsBuilderBlockwhich sets specific options on the builder.Return Value
A
TVOIceOptionsinstance created using options set in the builder block.