Skip to content

WebrtcCallOptions

Adnan Mujagić edited this page Sep 21, 2023 · 5 revisions

extends CallOptions

static builder()

Description

Creates a builder instance used to build a new instance of WebrtcCallOptions.

Arguments

  • none

Returns

Example

let webrtcCallOptionsBuilder = WebrtcCallOptions.builder();



video()

Description

Getter for the video field.

Arguments

  • none

Returns

  • boolean - Value of the video field indicating whether the call should include local video.

Example

let webrtcCallOptions = WebrtcCallOptions.builder().setVideo(true).build();
let video = webrtcCallOptions.video;



videoOptions()

Description

Getter for the videoOptions field.

Arguments

  • none

Returns

  • VideoOptions - Value of the videoOptions field indicating what configuration should be used for the local video.

Example

let webrtcCallOptions = WebrtcCallOptions.builder()
        .setVideo(true)
        .setVideoOptions(VideoOptions.builder().setCameraOrientation(CameraOrientation.BACK).build())
        .build();
let videoOptions = webrtcCallOptions.videoOptions;



dataChannel()

Description

Getter for the dataChannel field.

Arguments

  • none

Returns

  • boolean - Value of the dataChannel field indicating whether the data channel should be created for the call.

Example

let webrtcCallOptions = WebrtcCallOptions.builder().setDataChannel(true).build();
let dataChannel = webrtcCallOptions.dataChannel;

Tutorials

Migration guides

Reference documentation

Clone this wiki locally