-
Notifications
You must be signed in to change notification settings - Fork 2
WebrtcCallOptions
Lejla Solak edited this page May 27, 2024
·
6 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
- Value of thevideo
field 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
- Value of thevideoOptions
field 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
- Value of thedataChannel
field 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)
WebrtcCallOptions build()
Setter for the audio
field.
-
audio
:boolean
-true
if 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
-true
if 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
-true
if the data channel should be enabled. Disabled by default.
-
WebrtcCallOptions.Builder
- Instance of the builder.
WebrtcCallOptions.Builder webrtcCallOptionsBuilder = WebrtcCallOptions.builder().dataChannel(true);
Builds a new instance of the WebrtcCallOptions
.
none
-
WebrtcCallOptions
- Instance of theWebrtcCallOptions
.
WebrtcCallOptions.Builder webrtcCallOptionsBuilder = WebrtcCallOptions.builder();
WebrtcCallOptions webrtcCallOptions = webrtcCallOptionsBuilder.build();