Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace Camera

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

Index

Enumerations

Properties

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: undefined | { height: number; width: number }

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

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