DeviceInfo

open class DeviceInfo(val label: String, val kind: Kind, val deviceId: String, val facingMode: FacingMode?)

A device the SDK can use: a camera, or an audio output route.

VideoSDK.getDevices returns both kinds in one list. Ask for CameraDeviceInfo or MicrophoneDeviceInfo instead when you only want one of them.

Inheritors

Constructors

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

Properties

Link copied to clipboard

Camera2's camera id ("0", "1", …) for a camera, or the route name (EARPIECE, SPEAKER_PHONE, WIRED_HEADSET, BLUETOOTH) for an audio device.

Link copied to clipboard

null on every audio device, and on a camera whose lens is neither front nor back — an external or USB camera, or one whose characteristics could not be read.

Link copied to clipboard
val kind: Kind

Whether this is a camera or an audio route.

Link copied to clipboard

The name to show in a picker, such as Camera 0 (Front Camera) or SPEAKER_PHONE.