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
fun selectCameraDevice(cameraDevice: ): Unit
This API is in beta and subject to change.
Changes the currently selected camera device.
Parameters
cameraDevice:
The camera device to select
Returns
type:
Unit
setPreferredResolution
fun setPreferredResolution(resolution: ): 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
resolution:
The preferred resolution for cameras
Returns
type:
Unit
getInstance
@JvmStaticfun getInstance(context: Context
):
Parameters
context:
Context
Returns
type:
Props
currentCameraDevice
val currentCameraDevice:
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
type:
cameraDevices
val cameraDevices: List<CameraDevice>
This API is in beta and subject to change.
List of available camera devices.
Returns
type:
List<CameraDevice>
cameraOrientation
var 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
type:
videoSource
val videoSource: VideoSource?
Returns
type:
VideoSource?