-
Notifications
You must be signed in to change notification settings - Fork 0
VideoOptions
Adnan Mujagić edited this page Jul 5, 2024
·
7 revisions
static builder(): VideoOptionsBuilder
cameraOrientation(): CameraOrientation
videoFilter(): VideoFilter
videoMode(): VideoMode
cameraVideoFrameRate(): number
screenShareFrameRate(): number
Creates a builder instance used to build a new instance of VideoOptions
.
none
-
VideoOptionsBuilder
- Instance of the builder.
let videoOptionsBuilder = VideoOptions.builder();
Getter for the cameraOrientation
field.
none
-
CameraOrientation
- Value of thecameraOrientation
field representing camera facing mode.
let videoOptions = VideoOptions.builder()
.setCameraOrientation(CameraOrientation.BACK)
.build();
let cameraOrientation = videoOptions.cameraOrientation;
Getter for the videoFilter
field.
none
-
VideoFilter
- The value of thevideoFilter
field, which represents the video filter to be applied on the camera video stream.
let videoFilter = createVideoFilterImplementation();
let videoOptions = VideoOptions.builder()
.setVideoFilter(videoFilter)
.build();
let videoFilter = videoOptions.videoFilter;
Getter for the videoMode
field.
none
-
VideoMode
- Value of thevideoMode
field representing a configuration used for video subscriptions in the call.
let videoOptions = VideoOptions.builder()
.setVideoMode(VideoMode.GRID)
.build();
let videoMode = videoOptions.videoMode;
Getter for the cameraVideoFrameRate
field.
none
-
number
- Value of thecameraVideoFrameRate
field representing the max frame rate of the camera video. The value ranges from1
(min) to30
(max) frames per second.
let videoOptions = VideoOptions.builder()
.setCameraVideoFrameRate(30)
.build();
let cameraVideoFrameRate = videoOptions.videoMode.cameraVideoFrameRate;
Getter for the screenShareFrameRate
field.
none
-
number
- Value of thescreenShareFrameRate
field representing the max frame rate of the screen share. The value ranges from1
(min) to30
(max) frames per second.
let videoOptions = VideoOptions.builder()
.setScreenShareFrameRate(30)
.build();
let cameraVideoFrameRate = videoOptions.videoMode.screenShareFrameRate;