TVIIceOptionsBuilder Class Reference

Inherits from NSObject
Declared in TVIIceOptions.h

Overview

If you provide a transportPolicy but do not provide any ICE Servers, then the servers will automatically be fetched for you based upon how the Room was created. For Client created Rooms the default Room settings are used, while settings are provided on a per-Room basis when creating Rooms using the REST API.

  servers

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

@property (nonatomic, strong, nullable) NSArray<TVIIceServer*> *servers

Declared In

TVIIceOptions.h

  transportPolicy

The transport policy to use. Defaults to TVIIceTransportPolicyAll.

@property (nonatomic, assign) TVIIceTransportPolicy transportPolicy

Declared In

TVIIceOptions.h

  abortOnIceServersTimeout

Whether to abort if ICE servers time out.

@property (nonatomic, assign) BOOL abortOnIceServersTimeout

Discussion

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) NSTimeInterval iceServersTimeout

Declared In

TVIIceOptions.h