Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Camera

Implementation of the 'camera' markup element. A HTML video element is used to create a camera. For CSS manipulations the following classes are added: lto-camera: the camera container lto-take-photo: is used for taking a photo. The photo will be displayed in the canvas below the video element lto-reset-photo: is enabled when photo is taken. A click on this div, resets the camera

see

IRenderable

Hierarchy

  • Camera

Implements

Index

Constructors

constructor

Properties

Private maxCanvasSize

maxCanvasSize: number

Private Optional mediaStream

mediaStream: MediaStream

Private spec

Methods

Private activatePhotoButton

  • activatePhotoButton(wrapper: HTMLDivElement): void

Private activateResetButton

  • activateResetButton(wrapper: HTMLDivElement): void

Private compressCameraImage

  • compressCameraImage(canvas: HTMLCanvasElement, wrapper: HTMLDivElement): Promise<void>

Private initCamera

  • initCamera(wrapper: HTMLDivElement): void

render

  • render(renderer: IRenderer, isNested: boolean): HTMLElement

Private stopCamera

  • stopCamera(wrapper: HTMLDivElement): void

Private takePhoto

  • takePhoto(wrapper: HTMLDivElement): void

Static Private deactivateClick

  • deactivateClick(element: HTMLDivElement): void

Generated using TypeDoc