MediaVideoFrame Class
A frame of a video, painted in the box of the video element by the rendering backend of the browsing context and drawn by drawImage(): pixels in the RGBA format (4 bytes per pixel, not premultiplied, sRGB), from the top-left pixel, row by row.
public sealed class MediaVideoFrameConstructors
| Name | Description |
|---|---|
| MediaVideoFrame(int, int, ReadOnlyMemory<byte>) | Creates a frame from its pixels. |
MediaVideoFrame(int, int, ReadOnlyMemory<byte>)
MediaBackend.csCreates a frame from its pixels.
public MediaVideoFrame(int width, int height, ReadOnlyMemory<byte> pixels)Parameters
widthint- The width of the frame in pixels.
heightint- The height of the frame in pixels.
pixelsReadOnlyMemory<byte>- The pixels:
widthxheightx 4 bytes (RGBA, not premultiplied, sRGB).
Properties
| Name | Description |
|---|---|
| Height | Gets the height of the frame in pixels. |
| Pixels | Gets the pixels of the frame (RGBA, not premultiplied, sRGB). |
| Width | Gets the width of the frame in pixels. |
Height
MediaBackend.csPixels
MediaBackend.csGets the pixels of the frame (RGBA, not premultiplied, sRGB).
public ReadOnlyMemory<byte> Pixels { get; }