Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Source

Hierarchy

  • Source

Index

Constructors

constructor

Properties

domElement

domElement: HTMLImageElement | HTMLVideoElement | undefined

Private parameters

parameters: SourceParameters

Methods

Private _initSourceWebcam

  • _initSourceWebcam(onReady: function, onError: function): undefined | HTMLVideoElement
  • Parameters

    • onReady: function
        • (): any
        • Returns any

    • onError: function
        • (message: string): any
        • Parameters

          • message: string

          Returns any

    Returns undefined | HTMLVideoElement

copyElementSizeTo

  • copyElementSizeTo(otherElement: HTMLElement): void
  • Copy the dimensions of the domElement of the source to another given domElement

    Parameters

    • otherElement: HTMLElement

      the target element to copy the size to, from the Source dom element

    Returns void

dispose

  • dispose(): void
  • Returns void

initialize

  • initialize(): Promise<Object>
  • Returns Promise<Object>

onResizeElement

  • onResizeElement(): void
  • Returns void

Private positionSourceDomElement

  • positionSourceDomElement(): void
  • Returns void

Private setParameters

  • setParameters(parameters: any): void
  • Parameters

    • parameters: any

    Returns void

Generated using TypeDoc