-
Notifications
You must be signed in to change notification settings - Fork 0
WebrtcCallOptionsBuilder
Adnan Mujagić edited this page Sep 21, 2023
·
6 revisions
setAudio(audio: boolean): WebrtcCallOptionsBuilder
setAudioOptions(audioOptions: AudioOptions): WebrtcCallOptionsBuilder
setVideo(video: boolean): WebrtcCallOptionsBuilder
setVideoOptions(videoOptions: VideoOptions): WebrtcCallOptionsBuilder
setRecordingOptions(recordingOptions: WebrtcCallRecordingOptions): WebrtcCallOptionsBuilder
setCustomData(customData: CustomData): WebrtcCallOptionsBuilder
setDataChannel(dataChannel: boolean): WebrtcCallOptionsBuilder
build(): WebrtcCallOptions
Setter for the audio
field.
-
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 isfalse
.
-
WebrtcCallOptionsBuilder
- Instance of the builder.
let webrtcCallOptionsBuilder = WebrtcCallOptions.builder();
webrtcCallOptionsBuilder.setAudio(false);
Setter for the audioOptions
field.
-
audioOptions
:AudioOptions
- Configuration used for the audio in the call.
-
WebrtcCallOptionsBuilder
- Instance of the builder.
let audioOptions = AudioOptions.builder().lowDataMode(true).build();
let webrtcCallOptionsBuilder = WebrtcCallOptions.builder();
webrtcCallOptionsBuilder.setAudioOptions(audioOptions);
Setter for the video
field.
-
video
:boolean
-true
if the video should be enabled. Disabled by default.
-
WebrtcCallOptionsBuilder
- Instance of the builder.
let webrtcCallOptionsBuilder = WebrtcCallOptions.builder();
webrtcCallOptionsBuilder.setVideo(true);
Setter for the videoOptions
field.
-
videoOptions
:VideoOptions
- Configuration used for the local video in the call.
-
WebrtcCallOptionsBuilder
- Instance of the builder.
let videoOptions = VideoOptions.builder().setCameraOrientation(CameraOrientation.BACK).build()
let webrtcCallOptionsBuilder = WebrtcCallOptions.builder();
webrtcCallOptionsBuilder.setVideoOptions(videoOptions);
Setter for the recordingOptions
field.
-
recordingOptions
:WebrtcCallRecordingOptions
- Recording configuration to be used for the call.
-
WebrtcCallOptionsBuilder
- Instance of the builder.
let recordingOptions = new WebrtcCallRecordingOptions("AUDIO_AND_VIDEO");
let webrtcCallOptionsBuilder = WebrtcCallOptions.builder();
webrtcCallOptionsBuilder.setRecordingOptions(recordingOptions);
Setter for the customData
field.
-
customData
:CustomData
- Object containing custom additional information. Empty by default. This object will be forwarded to the other peer in the incoming call event.
-
WebrtcCallOptionsBuilder
- Instance of the builder.
let webrtcCallOptionsBuilder = WebrtcCallOptions.builder();
webrtcCallOptionsBuilder.setCustomData({"city": "New York"});
Setter for the dataChannel
field.
-
dataChannel
:boolean
-true
if the data channel should be created for the call. Disabled by default.
-
WebrtcCallOptionsBuilder
- Instance of the builder.
let webrtcCallOptionsBuilder = WebrtcCallOptions.builder();
webrtcCallOptionsBuilder.setDataChannel(true);
Builds a new instance of the WebrtcCallOptions
.
none
-
WebrtcCallOptions
- Instance of theWebrtcCallOptions
.
let webrtcCallOptionsBuilder = WebrtcCallOptions.builder();
let webrtcCallOptions = webrtcCallOptionsBuilder.build();