-
Notifications
You must be signed in to change notification settings - Fork 2
RoomCallOptions
Lejla Solak edited this page May 27, 2024
·
7 revisions
static RoomCallOptions.Builder builder()
boolean isAudio()
AudioOptions getAudioOptions()
boolean isVideo()
VideoOptions getVideoOptions()
RecordingOptions getRecordingOptions()
Map<String, String> getCustomData()
boolean isDataChannel()
boolean isAutoRejoin()
static class Builder
Creates a builder instance used to build a new instance of RoomCallOptions
.
none
-
RoomCallOptions.Builder
- Instance of the builder.
RoomCallOptions.Builder roomCallOptionsBuilder = RoomCallOptions.builder();
Getter for the audio
field.
none
-
boolean
- Value of theaudio
field indicating whether the call should include local audio.
RoomCallOptions roomCallOptions = RoomCallOptions.builder().audio(false).build();
boolean audio = roomCallOptions.isAudio();
Getter for the audioOptions
field.
none
-
AudioOptions
- Value of theaudioOptions
field indicating what configuration should be used for the audio.
RoomCallOptions roomCallOptions = RoomCallOptions.builder()
.audioOptions(AudioOptions.builder().lowDataMode(true).build())
.build();
AudioOptions audioOptions = roomCallOptions.getAudioOptions();
Getter for the video
field.
none
-
boolean
- Value of thevideo
field indicating whether the call should include local video.
RoomCallOptions roomCallOptions = RoomCallOptions.builder().video(true).build();
boolean video = roomCallOptions.isVideo();
Getter for the videoOptions
field.
none
-
VideoOptions
- Value of thevideoOptions
field indicating what configuration should be used for the local video.
RoomCallOptions roomCallOptions = RoomCallOptions.builder()
.videoOptions(VideoOptions.builder().cameraOrientation(VideoOptions.CameraOrientation.BACK).build())
.build();
VideoOptions videoOptions = roomCallOptions.getVideoOptions();
Getter for the recordingOptions
field.
none
-
RecordingOptions
- Value of therecordingOptions
field representing the recording configuration to be used for the call.
RoomCallOptions roomCallOptions = RoomCallOptions.builder()
.recordingOptions(RecordingOptions.builder().recordingType(RecordingType.AUDIO_AND_VIDEO).build())
.build();
RecordingOptions recordingOptions = roomCallOptions.getRecordingOptions();
Getter for customData
field.
none
-
Map<String, String>
- Value of thecustomData
field representing the additional custom information added to the call options.
RoomCallOptions roomCallOptions = RoomCallOptions.builder()
.customData(Map.of("username", "Alice"))
.build();
Map<String, String> customData = roomCallOptions.getCustomData();
Getter for the dataChannel
field.
none
-
boolean
- Value of thedataChannel
field indicating whether the data channel should be created for this call.
RoomCallOptions roomCallOptions = RoomCallOptions.builder().dataChannel(true).build();
boolean dataChannel = roomCallOptions.isDataChannel();
Getter for the autoRejoin
field.
none
-
boolean
- Value of theautoRejoin
field indicating whether the call should initiate rejoining process when the connection is lost.
RoomCallOptions roomCallOptions = RoomCallOptions.builder().autoRejoin(true).build();
boolean autoRejoin = roomCallOptions.isAutoRejoin();
Builder audio(boolean audio)
Builder video(boolean video)
Builder audioOptions(AudioOptions audioOptions)
Builder videoOptions(VideoOptions videoOptions)
Builder recordingOptions(RecordingOptions recordingOptions)
Builder customData(Map<String, String> customData)
Builder dataChannel(boolean dataChannel)
Builder autoRejoin(boolean autoRejoin)
RoomCallOptions build()
Setter for the audio
field.
-
audio
:boolean
-true
if the local audio should be enabled. Enabled by default.
-
RoomCallOptions.Builder
- Instance of the builder.
RoomCallOptions.Builder roomCallOptionsBuilder = RoomCallOptions.builder().audio(false);
Setter for the video
field.
-
video
:boolean
-true
if the video should be enabled. Disabled by default.
-
RoomCallOptions.Builder
- Instance of the builder.
RoomCallOptions.Builder roomCallOptionsBuilder = RoomCallOptions.builder().video(true);
Setter for the audioOptions
field.
-
audioOptions
:AudioOptions
- Configuration used for the audio in the call.
-
RoomCallOptions.Builder
- Instance of the builder.
AudioOptions audioOptions = AudioOptions.builder().lowDataMode(true).build();
RoomCallOptions.Builder roomCallOptionsBuilder = RoomCallOptions.builder().audioOptions(audioOptions);
Setter for the videoOptions
field.
-
videoOptions
:VideoOptions
- Configuration used for the local video in the call.
-
RoomCallOptions.Builder
- Instance of the builder.
VideoOptions videoOptions = VideoOptions.builder().cameraOrientation(VideoOptions.CameraOrientation.BACK).build();
RoomCallOptions.Builder roomCallOptionsBuilder = RoomCallOptions.builder().videoOptions(videoOptions);
Setter for the recordingOptions
field.
-
recordingOptions
:RecordingOptions
- Recording configuration to be used for the call.
-
RoomCallOptions.Builder
- Instance of the builder.
RecordingOptions recordingOptions = RecordingOptions.Builder.recordingType(RecordingType.AUDIO_AND_VIDEO).build();
RoomCallOptions.Builder roomCallOptionsBuilder = RoomCallOptions.builder().recordingOptions(recordingOptions);
Setter for the customData
field.
-
customData
:Map<String, String>
- Object containing custom additional information related to the outgoing call. Empty by default.
-
RoomCallOptions.Builder
- Instance of the builder.
Map<String, String> customData = Map.of("username", "Alice");
RoomCallOptions.Builder roomCallOptionsBuilder = RoomCallOptions.builder().customData(customData);
Setter for the dataChannel
field.
-
dataChannel
:boolean
-true
if the data channel should be enabled. Disabled by default.
-
RoomCallOptions.Builder
- Instance of the builder.
RoomCallOptions.Builder roomCallOptionsBuilder = RoomCallOptions.builder().dataChannel(true);
Setter for the autoRejoin
field.
-
autoRejoin
:boolean
-true
if the the room call should initiate rejoining process when the connection is lost.
-
RoomCallOptions.Builder
- Instance of the builder.
RoomCallOptions.Builder roomCallOptionsBuilder = RoomCallOptions.builder().autoRejoin(true);
Builds a new instance of the RoomCallOptions
.
none
-
RoomCallOptions
- Instance of theRoomCallOptions
.
RoomCallOptions.Builder roomCallOptionsBuilder = RoomCallOptions.builder();
RoomCallOptions roomCallOptions = roomCallOptionsBuilder.build();