-
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 ProtocolVersionprotocolVersionprivate final ClientProtocolVersionclientProtocol
-
Constructor Summary
Constructors Constructor Description ConnectOptions(Boolean autoSubscribe, List<PeerConnection.IceServer> iceServers, PeerConnection.RTCConfiguration rtcConfig, Boolean audio, Boolean video, ProtocolVersion protocolVersion, ClientProtocolVersion clientProtocol)
-
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. final ClientProtocolVersiongetClientProtocol()The client protocol version to advertise to other participants in the room for peer-to-peer feature negotiation (RPC v2, etc.). -
-
Constructor Detail
-
ConnectOptions
ConnectOptions(Boolean autoSubscribe, List<PeerConnection.IceServer> iceServers, PeerConnection.RTCConfiguration rtcConfig, Boolean audio, Boolean video, ProtocolVersion protocolVersion, ClientProtocolVersion clientProtocol)
-
-
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.
-
getClientProtocol
final ClientProtocolVersion getClientProtocol()
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.
-
-
-
-