-
Notifications
You must be signed in to change notification settings - Fork 0
RoomCallOptionsBuilder
Ajša Terko edited this page Dec 7, 2023
·
1 revision
setAudio(audio: boolean): RoomCallOptionsBuilder
setAudioOptions(audioOptions: AudioOptions): RoomCallOptionsBuilder
setVideo(video: boolean): RoomCallOptionsBuilder
setVideoOptions(videoOptions: VideoOptions): RoomCallOptionsBuilder
setRecordingOptions(recordingOptions: RoomCallRecordingOptions): RoomCallOptionsBuilder
setCustomData(customData: CustomData): RoomCallOptionsBuilder
setAutoRejoin(autoRejoin: boolean): RoomCallOptionsBuilder
setDataChannel(dataChannel: boolean): RoomCallOptionsBuilder
build(): RoomCallOptions
Setter for the audio
field.
-
audio
:boolean
-true
if the local audio should be enabled. Enabled by default. Note, access to the microphone will still be requested even if audio isfalse
.
-
RoomCallOptionsBuilder
- Instance of the builder.
let roomCallOptionsBuilder = RoomCallOptions.builder();
roomCallOptionsBuilder.setAudio(false);
Setter for the audioOptions
field.
-
audioOptions
:AudioOptions
- Configuration used for the audio in the call.
-
RoomCallOptionsBuilder
- Instance of the builder.
let audioOptions = AudioOptions.builder().lowDataMode(true).build();
let roomCallOptionsBuilder = RoomCallOptions.builder();
roomCallOptionsBuilder.setAudioOptions(audioOptions);
Setter for the video
field.
-
video
:boolean
-true
if the video should be enabled. Disabled by default.
-
RoomCallOptionsBuilder
- Instance of the builder.
let roomCallOptionsBuilder = RoomCallOptions.builder();
roomCallOptionsBuilder.setVideo(true);
Setter for the videoOptions
field.
-
videoOptions
:VideoOptions
- Configuration used for the local video in the room call.
-
RoomCallOptionsBuilder
- Instance of the builder.
let videoOptions = VideoOptions.builder().setCameraOrientation(CameraOrientation.BACK).build()
let roomCallOptionsBuilder = RoomCallOptions.builder();
roomCallOptionsBuilder.setVideoOptions(videoOptions);
Setter for the recordingOptions
field.
-
recordingOptions
:RoomCallRecordingOptions
- Recording configuration to be used for the call.
-
RoomCallOptionsBuilder
- Instance of the builder.
let recordingOptions = new RoomCallRecordingOptions("AUDIO_AND_VIDEO");
let roomCallOptionsBuilder = RoomCallOptions.builder();
roomCallOptionsBuilder.setRecordingOptions(recordingOptions);
Setter for the customData
field.
-
customData
:CustomData
- Object containing custom additional information related to the outgoing call. Empty by default.
-
RoomCallOptionsBuilder
- Instance of the builder.
let roomCallOptionsBuilder = RoomCallOptions.builder();
roomCallOptionsBuilder.setCustomData({"city": "New York"});
Setter for the autoRejoin
field.
-
autoRejoin
:boolean
-true
if the call should initiate rejoining process when the connection is lost. If successful, the call will be rejoined in the state that it was in when rejoining was initiated. For example, if the call was muted and had no video at the moment rejoining started, the rejoined call will have that same configuration. Disabled by default.
-
RoomCallOptionsBuilder
- Instance of the builder.
let roomCallOptionsBuilder = RoomCallOptions.builder();
roomCallOptionsBuilder.setAutoRejoin(true);
Setter for the dataChannel
field.
-
dataChannel
:boolean
-true
if the data channel should be created for the room call. Disabled by default.
-
RoomCallOptionsBuilder
- Instance of the builder.
let roomCallOptionsBuilder = RoomCallOptions.builder();
roomCallOptionsBuilder.setDataChannel(true);
Builds a new instance of the RoomCallOptions
.
none
-
RoomCallOptions
- Instance of theRoomCallOptions
.
let roomCallOptionsBuilder = RoomCallOptions.builder();
let roomCallOptions = roomCallOptionsBuilder.build();