Class CanvasVideoFrameBuffer

[[CanvasVideoFrameBuffer]] implements [[VideoFrameBuffer]]. It internally holds an HTMLCanvasElement.

Implements

Constructors

Properties

framerate: number

The frame rate of the source in the [[VideoFrameBuffer]].

height: number

The height in pixels of the source in the [[VideoFrameBuffer]].

width: number

The width in pixels of the source in the [[VideoFrameBuffer]].

Methods

  • Explicitly destroys the source and intermediate buffers in [[VideoFrameBuffer]]. After destroy is called, this [[VideoFrameBuffer]] must be discarded. destroy is typically required to be called, when MediaStream, HTMLVideoElement and ImageData are passed in as initialization data.

    Returns void