The frame rate of the source in the [[VideoFrameBuffer]].
The height in pixels of the source in the [[VideoFrameBuffer]].
The width in pixels of the source in the [[VideoFrameBuffer]].
Returns HTMLCanvasElement or OffscreenCanvas if the internal source can be transformed into one. Optional method.
Returns null if the buffer is destroyed.
Returns the buffer as CanvasImageSource which can be drawn on HTMLCanvasElement directly.
If destroy is already called, asCanvasImageSource should reject.
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.
[[CanvasVideoFrameBuffer]] implements [[VideoFrameBuffer]]. It internally holds an
HTMLCanvasElement.