OTSessionSettings
Defines settings to be used when initializing an OTSession object using the [OTSession initWithApiKey:sessionId:delegate:settings:] method.
Properties
| Name | Type | Description |
|---|---|---|
connectionEventsSuppressed |
BOOL | Prevent connection events (such as [OTSessionDelegate session:connectionCreated:]) from being dispatched. The default value is NO. |
iceConfig |
OTSessionICEConfig * | Defines the TURN servers to be used by the client in the OpenTok session. See the configurable TURN servers developer guide. |
apiURL |
NSURL * | This property is deprecated. Setting it has no effect. |
ipWhitelist |
BOOL | Set this to YES if the allowed IP list feature is enabled for your project. (This is available as an add-on feature.) The default value is NO. |
proxyURL |
NSString * | Set this to the URL of the IP proxy server. This is available as an add-on feature. See the OpenTok pricing page and the IP proxy developer guide. |
singlePeerConnection |
BOOL | Single Peer Connection (SPC) is a feature that encapsulates all subscriber connections to a single peer connection. The benefits of enabling SPC include reduced OS resource consumption, improved rate control, and, in case of mobile native devices, support for larger sessions. SPC is disabled by default. When disabled, the session will use Multiple Peer Connection (MPC), where a separate peer connection is established between each endpoint. |
sessionMigration |
BOOL | Enables the session migration feature, allowing the client to remain connected during server rotation. The default value is false (session migration is not enabled). For more information, see Server Rotation and Session Migration. |