CanvasCaptureMediaStreamTrack Class

The video track of a stream captured from a canvas (https://w3c.github.io/mediacapture-fromelement/#the-canvascapturemediastreamtrack): its frames are the content of the canvas, captured when it changes (or when CanvasCaptureMediaStreamTrack.RequestFrame is called).

public sealed class CanvasCaptureMediaStreamTrack : MediaStreamTrack
Inheritance
MediaStreamTrack CanvasCaptureMediaStreamTrack

Properties

NameDescription
CanvasGets the canvas whose content is captured.

Gets the canvas whose content is captured.

public HtmlCanvasElement Canvas { get; }

Methods

NameDescription
RequestFrame()Captures the content of the canvas at the next rendering, even when it did not change (https://w3c.github.io/mediacapture-fromelement/#dom-canvascapturemediastreamtrack-requestframe).

RequestFrame()

CaptureFromElement.cs

Captures the content of the canvas at the next rendering, even when it did not change (https://w3c.github.io/mediacapture-fromelement/#dom-canvascapturemediastreamtrack-requestframe).

public void RequestFrame()