-
public final class ConnectOptionsOptions for using with Room.connect.
-
-
Field Summary
Fields Modifier and Type Field Description private final BooleanautoSubscribeprivate final List<PeerConnection.IceServer>iceServersprivate final PeerConnection.RTCConfigurationrtcConfigprivate final Booleanaudioprivate final Booleanvideoprivate final ProtocolVersionprotocolVersion
-
Constructor Summary
Constructors Constructor Description ConnectOptions(Boolean autoSubscribe, List<PeerConnection.IceServer> iceServers, PeerConnection.RTCConfiguration rtcConfig, Boolean audio, Boolean video, ProtocolVersion protocolVersion)
-
Method Summary
Modifier and Type Method Description final BooleangetAutoSubscribe()Auto subscribe to room tracks upon connect, defaults to true final List<PeerConnection.IceServer>getIceServers()A user-provided list of ice servers. final PeerConnection.RTCConfigurationgetRtcConfig()A user-provided RTCConfiguration to override options. final BooleangetAudio()capture and publish audio track on connect, defaults to false final BooleangetVideo()capture and publish video track on connect, defaults to false final ProtocolVersiongetProtocolVersion()the protocol version to use with the server. -
-
Constructor Detail
-
ConnectOptions
ConnectOptions(Boolean autoSubscribe, List<PeerConnection.IceServer> iceServers, PeerConnection.RTCConfiguration rtcConfig, Boolean audio, Boolean video, ProtocolVersion protocolVersion)
-
-
Method Detail
-
getAutoSubscribe
final Boolean getAutoSubscribe()
Auto subscribe to room tracks upon connect, defaults to true
-
getIceServers
final List<PeerConnection.IceServer> getIceServers()
A user-provided list of ice servers. This will be merged into the ice servers in rtcConfig if it is also provided.
-
getRtcConfig
final PeerConnection.RTCConfiguration getRtcConfig()
A user-provided RTCConfiguration to override options.
Note: LiveKit requires PeerConnection.SdpSemantics.UNIFIED_PLAN and PeerConnection.ContinualGatheringPolicy.GATHER_CONTINUALLY.
-
getProtocolVersion
final ProtocolVersion getProtocolVersion()
the protocol version to use with the server.
-
-
-
-