Skip to content

RoomCallOptionsBuilder

Adnan Elezović edited this page Feb 7, 2025 · 2 revisions



setAudio(audio)

Description

Setter for the audio field.

Arguments

  • 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 is false.

Returns

Example

let roomCallOptionsBuilder = RoomCallOptions.builder();
roomCallOptionsBuilder.setAudio(false);



setAudioOptions(audioOptions)

Description

Setter for the audioOptions field.

Arguments

  • audioOptions: AudioOptions - Configuration used for the audio in the call.

Returns

Example

let audioOptions = AudioOptions.builder().lowDataMode(true).build();
let roomCallOptionsBuilder = RoomCallOptions.builder();
roomCallOptionsBuilder.setAudioOptions(audioOptions);



setVideo(video)

Description

Setter for the video field.

Arguments

  • video: boolean -true if the video should be enabled. Disabled by default.

Returns

Example

let roomCallOptionsBuilder = RoomCallOptions.builder();
roomCallOptionsBuilder.setVideo(true);



setVideoOptions(videoOptions)

Description

Setter for the videoOptions field.

Arguments

  • videoOptions: VideoOptions - Configuration used for the local video in the room call.

Returns

Example

let videoOptions = VideoOptions.builder().setCameraOrientation(CameraOrientation.BACK).build()
let roomCallOptionsBuilder = RoomCallOptions.builder();
roomCallOptionsBuilder.setVideoOptions(videoOptions);



setRecordingOptions(recordingOptions)

Description

Setter for the recordingOptions field.

Arguments

Returns

Example

let recordingOptions = new RoomCallRecordingOptions("AUDIO_AND_VIDEO");
let roomCallOptionsBuilder = RoomCallOptions.builder();
roomCallOptionsBuilder.setRecordingOptions(recordingOptions);



setCustomData(customData)

Description

Setter for the customData field.

Arguments

  • customData: CustomData - Object containing custom additional information related to the outgoing call. Empty by default.

Returns

Example

let roomCallOptionsBuilder = RoomCallOptions.builder();
roomCallOptionsBuilder.setCustomData({"city": "New York"});



setAutoReconnect(autoReconnect)

Description

Setter for the autoReconnect field.

Arguments

  • autoReconnect: boolean -true if the call should reconnect in case of connection loss. Disabled by default.

Returns

Example

let roomCallOptionsBuilder = RoomCallOptions.builder();
roomCallOptionsBuilder.setAutoReconnect(true);



setDataChannel(dataChannel)

Description

Setter for the dataChannel field.

Arguments

  • dataChannel: boolean - true if the data channel should be created for the room call. Disabled by default.

Returns

Example

let roomCallOptionsBuilder = RoomCallOptions.builder();
roomCallOptionsBuilder.setDataChannel(true);



build()

Description

Builds a new instance of the RoomCallOptions.

Arguments

  • none

Returns

Example

let roomCallOptionsBuilder = RoomCallOptions.builder();
let roomCallOptions = roomCallOptionsBuilder.build();

Tutorials

Migration guides

Reference documentation

Clone this wiki locally