CameraDeviceInfo

class CameraDeviceInfo(label: String, deviceId: String, facingMode: FacingMode?) : DeviceInfo

A camera, as Camera2 reports it. Listed by VideoSDK.getCameras.

Parameters

label

the name to show in a picker, such as Camera 0 (Front Camera).

deviceId

Camera2's camera id — "0", "1", and so on.

facingMode

which way the lens points, or null for a lens that is neither front nor back, such as an external or USB camera.

Constructors

Link copied to clipboard
constructor(label: String, deviceId: String, facingMode: FacingMode?)