-
Notifications
You must be signed in to change notification settings - Fork 2
WebrtcCallOptions
Lejla Solak edited this page Feb 10, 2025
·
7 revisions
extends CallOptions
static WebrtcCallOptions.Builder builder()boolean isVideo()VideoOptions getVideoOptions()boolean isDataChannel()static class Builder
Creates a builder instance used to build a new instance of WebrtcCallOptions.
none
-
WebrtcCallOptions.Builder- Instance of the builder.
WebrtcCallOptions.Builder webrtcCallOptionsBuilder = WebrtcCallOptions.builder();Getter for the video field.
none
-
boolean- The value of thevideofield indicating whether the call should include local video.
WebrtcCallOptions webrtcCallOptions = WebrtcCallOptions.builder().video(true).build();
boolean video = webrtcCallOptions.isVideo();Getter for the videoOptions field.
none
-
VideoOptions- The value of thevideoOptionsfield indicating what configuration should be used for the local video.
WebrtcCallOptions webrtcCallOptions = WebrtcCallOptions.builder()
.videoOptions(VideoOptions.builder().cameraOrientation(VideoOptions.CameraOrientation.BACK).build())
.build();
VideoOptions videoOptions = webrtcCallOptions.getVideoOptions();Getter for the dataChannel field.
none
-
boolean- The value of thedataChannelfield indicating whether the data channel should be created for this call.
WebrtcCallOptions webrtcCallOptions = WebrtcCallOptions.builder().dataChannel(true).build();
boolean dataChannel = webrtcCallOptions.isDataChannel();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)WebrtcCallOptions build()
Setter for the audio field.
-
audio:boolean-trueif the local audio should be enabled. Enabled by default.
-
WebrtcCallOptions.Builder- Instance of the builder.
WebrtcCallOptions.Builder webrtcCallOptionsBuilder = WebrtcCallOptions.builder().audio(false);Setter for the video field.
-
video:boolean-trueif the video should be enabled. Disabled by default.
-
WebrtcCallOptions.Builder- Instance of the builder.
WebrtcCallOptions.Builder webrtcCallOptionsBuilder = WebrtcCallOptions.builder().video(true);Setter for the audioOptions field.
-
audioOptions:AudioOptions- Configuration used for the audio in the call.
-
WebrtcCallOptions.Builder- Instance of the builder.
AudioOptions audioOptions = AudioOptions.builder().lowDataMode(true).build();
WebrtcCallOptions.Builder webrtcCallOptionsBuilder = WebrtcCallOptions.builder().audioOptions(audioOptions);Setter for the videoOptions field.
-
videoOptions:VideoOptions- Configuration used for the local video in the call.
-
WebrtcCallOptions.Builder- Instance of the builder.
VideoOptions videoOptions = VideoOptions.builder().cameraOrientation(VideoOptions.CameraOrientation.BACK).build();
WebrtcCallOptions.Builder webrtcCallOptionsBuilder = WebrtcCallOptions.builder().videoOptions(videoOptions);Setter for the recordingOptions field.
-
recordingOptions:RecordingOptions- Recording configuration to be used for the call.
-
WebrtcCallOptions.Builder- Instance of the builder.
RecordingOptions recordingOptions = RecordingOptions.Builder.recordingType(RecordingType.AUDIO_AND_VIDEO).build();
WebrtcCallOptions.Builder webrtcCallOptionsBuilder = WebrtcCallOptions.builder().recordingOptions(recordingOptions);Setter for the customData field.
-
customData:Map<String, String>- Object containing custom additional information. Empty by default. This object will be forwarded to the other peer in the incoming call event.
-
WebrtcCallOptions.Builder- Instance of the builder.
Map<String, String> customData = Map.of("username", "Alice");
WebrtcCallOptions.Builder webrtcCallOptionsBuilder = WebrtcCallOptions.builder().customData(customData);Setter for the dataChannel field.
-
dataChannel:boolean-trueif the data channel should be enabled. Disabled by default.
-
WebrtcCallOptions.Builder- Instance of the builder.
WebrtcCallOptions.Builder webrtcCallOptionsBuilder = WebrtcCallOptions.builder().dataChannel(true);Setter for the autoReconnect field.
-
autoReconnect:boolean-trueif the automatic call reconnect should be enabled. Disabled by default.
-
WebrtcCallOptions.Builder- Instance of the builder.
WebrtcCallOptions.Builder webrtcCallOptionsBuilder = WebrtcCallOptions.builder().autoReconnect(true);Builds a new instance of the WebrtcCallOptions.
none
-
WebrtcCallOptions- Instance of theWebrtcCallOptions.
WebrtcCallOptions.Builder webrtcCallOptionsBuilder = WebrtcCallOptions.builder();
WebrtcCallOptions webrtcCallOptions = webrtcCallOptionsBuilder.build();