Connect Options
data class ConnectOptions(val autoSubscribe: Boolean = true, val iceServers: List<PeerConnection.IceServer>? = null, val rtcConfig: PeerConnection.RTCConfiguration? = null, val audio: Boolean = false, val video: Boolean = false, val protocolVersion: ProtocolVersion = ProtocolVersion.v13, val clientProtocol: ClientProtocolVersion = ClientProtocolVersion.DATA_STREAM_V2, val singlePeerConnection: Boolean = false)
Options for using with Room.connect.
Constructors
Link copied to clipboard
constructor(autoSubscribe: Boolean = true, iceServers: List<PeerConnection.IceServer>? = null, rtcConfig: PeerConnection.RTCConfiguration? = null, audio: Boolean = false, video: Boolean = false, protocolVersion: ProtocolVersion = ProtocolVersion.v13, clientProtocol: ClientProtocolVersion = ClientProtocolVersion.DATA_STREAM_V2, singlePeerConnection: Boolean = false)
Properties
Link copied to clipboard
Auto subscribe to room tracks upon connect, defaults to true
Link copied to clipboard
The client protocol version to advertise to other participants in the room for peer-to-peer feature negotiation (RPC v2, etc.). Defaults to the latest version supported by this SDK build.
Link copied to clipboard
A user-provided list of ice servers. This will be merged into the ice servers in rtcConfig if it is also provided.
Link copied to clipboard
the protocol version to use with the server.
Link copied to clipboard
Use a single peer connection instead of one subscriber and one publisher.