Skip to content

VideoOptionsBuilder

Adnan Mujagić edited this page Jul 5, 2024 · 6 revisions



setCameraOrientation(cameraOrientation)

Description

Setter for the cameraOrientation field.

Arguments

  • cameraOrientation: CameraOrientation - Optional enum value representing camera facing mode for local video. Default value is FRONT.

Returns

Example

let videoOptionsBuilder = VideoOptions.builder();
videoOptionsBuilder.setCameraOrientation(CameraOrientation.BACK);



setVideoFilter(videoFilter)

Description

Setter for the videoFilter field.

Arguments

  • videoFilter: VideoFilter - The object that represents the video filter to be applied on the camera video stream. Default value is null.

Returns

Example

let videoFilter = createVideoFilterImplementation()
let videoOptionsBuilder = VideoOptions.builder();
videoOptionsBuilder.setVideoFilter(videoFilter);



setVideoMode(videoMode)

Description

Setter for the videoMode field.

Arguments

  • videoMode: videoMode - Optional enum value representing configuration used for video subscriptions in the call. Default value is PRESENTATION.

Returns

Example

let videoOptionsBuilder = VideoOptions.builder();
videoOptionsBuilder.setVideoMode(VideoMode.GRID);



setCameraVideoFrameRate(cameraVideoFrameRate)

Description

Setter for the cameraVideoFrameRate field.

Arguments

  • cameraVideoFrameRate: number - Frame rate of the camera video. 24 frames per second (fps) by default. The applicable value range is from 1 (min) to 30 (max) frames per second.

Returns

Example

let videoOptionsBuilder = VideoOptions.builder();
videoOptionsBuilder.setCameraVideoFrameRate(30);



setScreenShareFrameRate(screenShareFrameRate)

Description

Setter for the screenShareFrameRate field.

Arguments

  • screenShareFrameRate: number - Frame rate of the screen share. 8 frames per second (fps) by default. The applicable value range is from 1 (min) to 30 (max) frames per second.

Returns

Example

let videoOptionsBuilder = VideoOptions.builder();
videoOptionsBuilder.setScreenShareFrameRate(30);



build()

Description

Builds a new instance of the VideoOptions.

Arguments

  • none

Returns

Example

let videoOptionsBuilder = VideoOptions.builder();
let videoOptions = videoOptionsBuilder.build();

Tutorials

Migration guides

Reference documentation

Clone this wiki locally