-
Notifications
You must be signed in to change notification settings - Fork 2
WebrtcCallOptionsBuilder
Adnan Elezović edited this page Feb 7, 2025
·
7 revisions
setAudio(audio: boolean): WebrtcCallOptionsBuildersetAudioOptions(audioOptions: AudioOptions): WebrtcCallOptionsBuildersetVideo(video: boolean): WebrtcCallOptionsBuildersetVideoOptions(videoOptions: VideoOptions): WebrtcCallOptionsBuildersetRecordingOptions(recordingOptions: WebrtcCallRecordingOptions): WebrtcCallOptionsBuildersetCustomData(customData: CustomData): WebrtcCallOptionsBuildersetDataChannel(dataChannel: boolean): WebrtcCallOptionsBuildersetAutoReconnect(autoReconnect: boolean): WebrtcCallOptionsBuilderbuild(): WebrtcCallOptions
Setter for the audio field.
-
audio:boolean-trueif 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-trueif 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-trueif the data channel should be created for the call. Disabled by default.
-
WebrtcCallOptionsBuilder- Instance of the builder.
let webrtcCallOptionsBuilder = WebrtcCallOptions.builder();
webrtcCallOptionsBuilder.setDataChannel(true);Setter for the autoReconnect field.
-
autoReconnect:boolean-trueif the call should reconnect in case of connection loss. Disabled by default.
-
WebrtcCallOptionsBuilder- Instance of the builder.
let webrtcCallOptionsBuilder = WebrtcCallOptions.builder();
webrtcCallOptionsBuilder.setAutoReconnect(true);Builds a new instance of the WebrtcCallOptions.
none
-
WebrtcCallOptions- Instance of theWebrtcCallOptions.
let webrtcCallOptionsBuilder = WebrtcCallOptions.builder();
let webrtcCallOptions = webrtcCallOptionsBuilder.build();