-
Notifications
You must be signed in to change notification settings - Fork 2
RoomCallOptions
Lejla Solak edited this page Feb 10, 2025
·
8 revisions
static RoomCallOptions.Builder builder()boolean isAudio()AudioOptions getAudioOptions()boolean isVideo()VideoOptions getVideoOptions()RecordingOptions getRecordingOptions()Map<String, String> getCustomData()boolean isDataChannel()boolean isAutoReconnect()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- The value of theaudiofield 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- The value of theaudioOptionsfield 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- The value of thevideofield 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- The value of thevideoOptionsfield 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- The value of therecordingOptionsfield 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 the customData field.
none
-
Map<String, String>- The value of thecustomDatafield 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- The value of thedataChannelfield 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 autoReconnect field.
none
-
boolean- The value of theautoReconnectfield indicating whether the call should initiate reconnecting process when the connection is lost.
RoomCallOptions roomCallOptions = RoomCallOptions.builder().autoReconnect(true).build();
boolean autoReconnect = roomCallOptions.isAutoReconnect();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 autoReconnect(boolean autoReconnect)RoomCallOptions build()
Setter for the audio field.
-
audio:boolean-trueif 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-trueif 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-trueif 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 autoReconnect field.
-
autoReconnect:boolean-trueif the room call should initiate reconnecting process when the connection is lost.
-
RoomCallOptions.Builder- Instance of the builder.
RoomCallOptions.Builder roomCallOptionsBuilder = RoomCallOptions.builder().autoReconnect(true);Builds a new instance of the RoomCallOptions.
none
-
RoomCallOptions- Instance of theRoomCallOptions.
RoomCallOptions.Builder roomCallOptionsBuilder = RoomCallOptions.builder();
RoomCallOptions roomCallOptions = roomCallOptionsBuilder.build();