TVIIceOptions Class Reference

Inherits from NSObject
Declared in TVIIceOptions.h

Overview

TVIIceOptions specifies custom media connectivity configurations.

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*> *servers

Discussion

An array of TVIIceServer objects to be used during connection establishment.

Declared In

TVIIceOptions.h

  transportPolicy

The transport policy to use. Defaults to TVIIceTransportPolicyAll.

@property (nonatomic, assign, readonly) TVIIceTransportPolicy transportPolicy

Discussion

The transport policy to use. Defaults to TVIIceTransportPolicyAll.

Declared In

TVIIceOptions.h

+ options

Creates a default TVIIceOptions instance.

+ (_Null_unspecified instancetype)options

Return 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)block

Parameters

block

A TVIIceOptionsBuilderBlock which sets specific options on the builder.

Return Value

A TVIIceOptions instance created using options set in the builder block.

Declared In

TVIIceOptions.h