-
Notifications
You must be signed in to change notification settings - Fork 3
VideoOptions
Adnan Mujagić edited this page Jun 11, 2024
·
4 revisions
init(_ cameraOrientation: CameraOrientation, _ videoMode: VideoMode, _ cameraVideoFrameRate: Int, _ screenShareFrameRate: Int, _ videoFilter: VideoFilter?)
cameraOrientation: CameraOrientation
videoMode: VideoMode
cameraVideoFrameRate: Int
screenShareFrameRate: Int
videoFilter: VideoFilter?
Creates an instance of the VideoOptions
.
-
cameraOrientation
:CameraOrientation
- Optional enum value representing camera facing mode for local video. Default value is.front
. -
videoMode
:VideoMode
- Optional enum value representing video mode of the call. Default value is.presentation
. -
cameraVideoFrameRate
:Int
- Optional value representing the camera video frame rate. Default is24
. -
screenShareFrameRate
:Int
- Optional value representing the screen share frame rate. Default is8
. -
videoFilter
:VideoFilter?
- Optional object that represents the video filter to be applied on the camera video stream. Default value isnil
.
-
VideoOptions
- Instance of theVideoOptions
.
let videoOptions = VideoOptions(.front, .presentation, 30, 8, nil)
Writable property representing the camera facing mode.
let cameraOrientation = VideoOptions().cameraOrientation
Writable property representing the video mode of the call.
-
VideoMode
- Value of thevideoMode
field.
let videoMode = VideoOptions().videoMode
Writable property representing frame rate of the camera video.
-
Int
- Value of thecameraVideoFrameRate
field representing frame rate of the camera video. The value ranges from 1 to 30 frames per second (fps).
let cameraVideoFrameRate = VideoOptions().cameraVideoFrameRate
Writable property representing frame rate of the screen share video.
-
Int
- Value of thescreenShareFrameRate
field representing frame rate of the screen share video. The value ranges from 1 to 30 frames per second (fps).
let screenShareFrameRate = VideoOptions().screenShareFrameRate
Writable property representing the video filter that should be applied on the camera video stream.
-
VideoFilter?
- Value of thevideoFilter
field.
let videoFilter = VideoOptions().videoFilter