Options
All
  • Public
  • Public/Protected
  • All
Menu

A camera for video input available to be used on the device.

Hierarchy

  • Camera

Index

Properties

Readonly cameraType

cameraType: Type

The type (facing mode/direction) of camera: back (environment) or front (user).

Not guaranteed to be correct: depending on device, browser and camera it could not correspond to the camera's real type.

Optional currentResolution

currentResolution: { height: number; width: number }

The current video resolution if and when the camera is in use, given as width and height in pixels.

Type declaration

  • height: number
  • width: number

Readonly deviceId

deviceId: string

The unique identifier for the device, can change between page loads.

Readonly label

label: string

The label describing the device.

Generated using TypeDoc