OpenTok.IceConfig

public class IceConfig

This is used for the configurable TURN feature. Pass this to the Session.Builder IceConfig property.

Properties

Name Type Description
CustomIceServers List<IceServer> { get; set; } The list of IceServer objects, representing custom TURN servers to be used by the client.
ForceTurn bool { get; set; }
IncludeServers ICEIncludeServers { get; set; } Whether to use only the custom servers or both OpenTok servers and the custom servers.

Methods

Name Description
IceConfig(customIceServers, forceTurn, includeServers)
ToString() → {override string}

IceConfig(customIceServers, forceTurn, includeServers)

Parameters:
Name Type Description
customIceServers List<IceServer> A list of IceServer objects, representing custom TURN servers to be used by the client. IceServer
forceTurn bool Whether to use all ICE transport types (such as host, srflx, and TURN) to establish media connectivity or to only use TURN. ICETransport
includeServers ICEIncludeServers Whether to use only the custom servers or both OpenTok servers and the custom servers. ICEIncludeServers

ToString() → {override string}

Returns:

override string