Rate this page:

CameraManager

This API is in beta and subject to change.

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

This API is in beta and subject to change.

Changes the currently selected camera device.

Parameters

Returns

  • type:

    Unit

setPreferredResolution

Copy URL
fun setPreferredResolution(resolution: 

CameraResolution

):

Unit

This API is in beta and subject to change.

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

Parameters

Returns

  • type:

    Unit

getInstance

Copy URL
@JvmStatic
fun getInstance(context:

Context

):

CameraManager

Parameters

  • context:

    Context

Returns

Props

currentCameraDevice

Copy URL
val currentCameraDevice: 

CameraDevice?

This API is in beta and subject to change.

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

cameraDevices

Copy URL
val cameraDevices: 

List<CameraDevice>

This API is in beta and subject to change.

List of available camera devices.

Returns

cameraOrientation

Copy URL
var cameraOrientation: 

CameraOrientation

This API is in beta and subject to change.

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

videoSource

Copy URL
val videoSource: 

VideoSource?

Returns

  • type:

    VideoSource?