Constructors

Properties

config: WebCamConfig

current webcam configuration

devices: MediaDeviceInfo[] = []

enumerated video devices

element: undefined | HTMLVideoElement

instance of dom element associated with webcam stream

stream: undefined | MediaStream

active webcam stream

Accessors

  • get capabilities(): undefined | MediaTrackCapabilities
  • get webcam capabilities

    Returns undefined | MediaTrackCapabilities

  • get constraints(): undefined | MediaTrackConstraints
  • get webcam constraints

    Returns undefined | MediaTrackConstraints

  • get settings(): undefined | MediaTrackSettings
  • get webcam settings

    Returns undefined | MediaTrackSettings

  • get track(): undefined | MediaStreamTrack
  • get active webcam stream track

    Returns undefined | MediaStreamTrack

Methods

  • Returns Promise<MediaDeviceInfo[]>

  • start method initializizes webcam stream and associates it with a dom video element

    Parameters

    Returns Promise<string>

  • stop method stops active webcam stream track and disconnects webcam

    Returns void