Options
All
  • Public
  • Public/Protected
  • All
Menu

Video capture using canvas painting.

Hierarchy

Index

Constructors

constructor

Properties

Optional VideoFrame

VideoFrame?: typeof VideoFrame

VideoFrame type to be used by captured frame, set by the user, but restricted by certain capture types.

source

source: MediaStream

Methods

close

  • close(): void

emitEvent

  • emitEvent(ev: string, arg: any): void
  • Emit this event.

    Parameters

    • ev: string

      Event name to emit.

    • arg: any

      Argument to the event handler(s).

    Returns void

getFramerate

  • getFramerate(): number

getHeight

  • getHeight(): number

getWidth

  • getWidth(): number

off

on

  • Set an event handler.

    Parameters

    • ev: string

      Event name, or "*" for all events.

    • handler: EventHandler

      Event handler for this event.

    Returns void

once

  • Set a one-time event handler.

    Parameters

    • ev: string

      Event name, or "*" for all events.

    • handler: EventHandler

      Event handler for this event.

    Returns void

tee

Generated using TypeDoc