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
MediaStreamTrackCanvasCaptureMediaStreamTrack
Properties
| Name | Description |
|---|---|
| Canvas | Gets the canvas whose content is captured. |
Canvas
CaptureFromElement.csGets the canvas whose content is captured.
public HtmlCanvasElement Canvas { get; }Methods
| Name | Description |
|---|---|
| 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.csCaptures 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()