-
Notifications
You must be signed in to change notification settings - Fork 2
VideoOptions
Lejla Solak edited this page Feb 10, 2025
·
8 revisions
static VideoOptions.Builder builder()VideoOptions.CameraOrientation getCameraOrientation()VideoOptions.VideoMode getVideoMode()VideoFilter getVideoFilter()int getCameraVideoFrameRate()int getScreenShareFrameRate()static class Builder
Creates a builder instance used to build a new instance of VideoOptions.
none
-
VideoOptions.Builder- Instance of the builder.
VideoOptions.Builder builder = VideoOptions.builder();Getter for the cameraOrientation field.
none
-
VideoOptions.CameraOrientation- The value of thecameraOrientationfield which configures the camera's orientation.
VideoOptions videoOptions = VideoOptions.builder()
.cameraOrientation(VideoOptions.CameraOrientation.FRONT)
.build();
VideoOptions.CameraOrientation cameraOrientation = videoOptions.getCameraOrientation();Getter for the videoMode field.
none
-
VideoOptions.VideoMode- The value of thevideoModefield which configures the mode of subscription to available video streams.
VideoOptions videoOptions = VideoOptions.builder()
.videoMode(VideoOptions.VideoMode.PRESENTATION)
.build();
VideoOptions.VideoMode videoMode = videoOptions.getVideoMode();Getter for the videoFilter field.
none
-
VideoFilter- The value of thevideoFilterfield, which represents the video filter to be applied on the camera video stream.
// Create a VideoOptions object with a video filter
VideoOptions videoOptions = VideoOptions.builder()
.videoFilter(createVideoFilter())
.build();
// Get the video filter from the VideoOptions object
VideoFilter videoFilter = videoOptions.getVideoFilter();Getter for the cameraVideoFrameRate field.
none
-
int- The value of thecameraVideoFrameRatefield representing frame rate of the camera video. The value ranges from 1 to 30 frames per second (fps).
VideoOptions videoOptions = VideoOptions.builder()
.cameraVideoFrameRate(15)
.build();
int cameraVideoFrameRate = videoOptions.getCameraVideoFrameRate();Getter for the screenShareFrameRate field.
none
-
int- The value of thescreenShareFrameRatefield representing frame rate of the screen share video. The value ranges from 1 to 30 frames per second (fps).
VideoOptions videoOptions = VideoOptions.builder()
.screenShareFrameRate(10)
.build();
int screenShareFrameRate = videoOptions.getScreenShareFrameRate();Builder cameraOrientation(CameraOrientation cameraOrientation)Builder videoMode(VideoMode videoMode)Builder videoFilter(VideoFilter videoFilter)Builder cameraVideoFrameRate(int cameraVideoFrameRate)Builder screenShareFrameRate(int screenShareFrameRate)VideoOptions build()
Setter for the cameraOrientation field.
-
cameraOrientation:CameraOrientation- Camera's orientation.CameraOrientation.FRONTby default.
-
VideoOptions.Builder- Instance of the builder.
VideoOptions.Builder videoOptionsBuilder = VideoOptions.builder().cameraOrientation(CameraOrientation.FRONT);Setter for the videoMode field.
-
videoMode:VideoMode- Mode of subscription to available video streams.VideoMode.PRESENTATIONby default.
-
VideoOptions.Builder- Instance of the builder.
VideoOptions.Builder videoOptionsBuilder = VideoOptions.builder().videoMode(VideoMode.PRESENTATION);Setter for the videoFilter field.
-
videoFilter:VideoFilter- The object that represents the video filter to be applied on the camera video stream. Default value isnull.
-
VideoOptions.Builder- Instance of the builder.
// Create a VideoOptions.Builder object and set the video filter
VideoOptions.Builder videoOptionsBuilder = VideoOptions.builder().videoFilter(createVideoFilter());Setter for the cameraVideoFrameRate field.
-
cameraVideoFrameRate:int- Frame rate of the camera video.24frames per second (fps) by default.
-
VideoOptions.Builder- Instance of the builder.
VideoOptions.Builder videoOptionsBuilder = VideoOptions.builder().cameraVideoFrameRate(15);Setter for the screenShareFrameRate field.
-
screenShareFrameRate:int- Frame rate of the screen share video.8frames per second (fps) by default.
-
VideoOptions.Builder- Instance of the builder.
VideoOptions.Builder videoOptionsBuilder = VideoOptions.builder().screenShareFrameRate(10);Builds a new instance of the VideoOptions.
none
-
VideoOptions- Instance of theVideoOptions.
VideoOptions.Builder videoOptionsBuilder = VideoOptions.builder();
VideoOptions videoOptions = videoOptionsBuilder.build();