ConnectOptions

data class ConnectOptions(autoSubscribe: Boolean, iceServers: List<PeerConnection.IceServer>?, rtcConfig: PeerConnection.RTCConfiguration?, audio: Boolean, video: Boolean, protocolVersion: ProtocolVersion)

Options for using with Room.connect.

Constructors

ConnectOptions
Link copied to clipboard
fun ConnectOptions(autoSubscribe: Boolean = true, iceServers: List<PeerConnection.IceServer>? = null, rtcConfig: PeerConnection.RTCConfiguration? = null, audio: Boolean = false, video: Boolean = false, protocolVersion: ProtocolVersion = ProtocolVersion.v12)

Properties

audio
Link copied to clipboard
val audio: Boolean = false
capture and publish audio track on connect, defaults to false
autoSubscribe
Link copied to clipboard
val autoSubscribe: Boolean = true
Auto subscribe to room tracks upon connect, defaults to true
iceServers
Link copied to clipboard
val iceServers: List<PeerConnection.IceServer>? = null
A user-provided list of ice servers.
protocolVersion
Link copied to clipboard
val protocolVersion: ProtocolVersion
the protocol version to use with the server.
rtcConfig
Link copied to clipboard
val rtcConfig: PeerConnection.RTCConfiguration? = null
A user-provided RTCConfiguration to override options.
video
Link copied to clipboard
val video: Boolean = false
capture and publish video track on connect, defaults to false

Sources

SDK source
Link copied to clipboard