Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace CameraAccess

A helper object to interact with cameras.

Index

Functions

Functions

getCameras

  • getCameras(): Promise<Camera[]>
  • Get a list of cameras (if any) available on the device, a camera access permission is requested to the user the first time this method is called if needed.

    If the browser is incompatible the returned promise is rejected with a UnsupportedBrowserError error.

    Returns Promise<Camera[]>

    A promise resolving to the array of available Camera objects (could be empty).

Generated using TypeDoc