CameraVideoSource
Class that represents camera video frame source for a call. The class may be used to send video frames from a camera video source.
Inherits from VideoSource interface.
Methods
selectCameraDevice
fun selectCameraDevice(cameraDevice: ): Unit
Changes the currentCameraDevice to the provided one.
Parameters
cameraDevice:
The required CameraDevice to select
Returns
type:
Unit
setPreferredResolution
fun setPreferredResolution(resolution: ): Unit
Changes the preferred resolution for cameras. The closest resolution available for the camera is selected.
Parameters
resolution:
The preferred resolution for cameras
Returns
type:
Unit
Props
currentCameraDevice
var currentCameraDevice:
The current camera device during a call, or the camera device that is used for the call if there are no calls at the moment.
Returns
type:
cameraDevices
var cameraDevices: List<CameraDevice>
List of available camera devices.
Returns
type:
List<CameraDevice>
cameraOrientation
var cameraOrientation:
The current camera orientation.
Set to CameraOrientation.Screen to use screen orientation, or set to CameraOrientation.Device to use device orientation.
The default value is CameraOrientation.Screen.
Returns
type: