Rate this page:

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

Copy URL
fun selectCameraDevice(cameraDevice: 

CameraDevice

):

Unit

Changes the currentCameraDevice to the provided one.

Parameters

Returns

  • type:

    Unit

setPreferredResolution

Copy URL
fun setPreferredResolution(resolution: 

CameraResolution

):

Unit

Changes the preferred resolution for cameras. The closest resolution available for the camera is selected.

Parameters

Returns

  • type:

    Unit

Props

cameraDevices

Copy URL
var cameraDevices: 

List<CameraDevice>

List of available camera devices.

Returns

cameraOrientation

Copy URL
var cameraOrientation: 

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

currentCameraDevice

Copy URL
var currentCameraDevice: 

CameraDevice?

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