public static class ConnectOptions.Builder extends Object
ConnectOptions
.
All methods are optional.
Modifier and Type | Method and Description |
---|---|
ConnectOptions.Builder |
audioTracks(List<LocalAudioTrack> audioTracks)
Audio tracks that will be published upon connection.
|
ConnectOptions |
build()
Builds
ConnectOptions object. |
ConnectOptions.Builder |
enableInsights(boolean enable)
Enable sending stats data to Insights.
|
ConnectOptions.Builder |
iceOptions(IceOptions iceOptions)
Custom ICE configuration used to connect to a Room.
|
ConnectOptions.Builder |
roomName(String roomName)
The name of the room.
|
ConnectOptions.Builder |
videoTracks(List<LocalVideoTrack> videoTracks)
Video tracks that will be published upon connection.
|
public Builder(String accessToken)
public ConnectOptions.Builder roomName(String roomName)
public ConnectOptions.Builder audioTracks(List<LocalAudioTrack> audioTracks)
public ConnectOptions.Builder videoTracks(List<LocalVideoTrack> videoTracks)
public ConnectOptions.Builder iceOptions(IceOptions iceOptions)
public ConnectOptions.Builder enableInsights(boolean enable)
public ConnectOptions build()
ConnectOptions
object.Exception
- if accessToken is null or empty.