HtmlVideoElement Class
https://html.spec.whatwg.org/multipage/media.html#htmlvideoelement
public sealed class HtmlVideoElement : HtmlMediaElement- Inheritance
HtmlMediaElementHtmlVideoElement
Properties
| Name | Description |
|---|---|
| Height | Gets or sets the value of the height content attribute. |
| PlaysInline | Gets or sets a value indicating whether the element has the playsinline content attribute. |
| Poster | Gets or sets the poster content attribute, as a URL resolved against the base URL of the document. |
| VideoHeight | Gets the natural height of the video in CSS pixels (https://html.spec.whatwg.org/multipage/media.html#dom-video-videoheight), or 0 when the dimensions are not known (the ready state is HAVE_NOTHING, or the resource has no video). |
| VideoWidth | Gets the natural width of the video in CSS pixels (https://html.spec.whatwg.org/multipage/media.html#dom-video-videowidth), or 0 when the dimensions are not known (the ready state is HAVE_NOTHING, or the resource has no video). |
| Width | Gets or sets the value of the width content attribute. |
Height
HtmlElements.g.csGets or sets the value of the height content attribute.
public uint Height { get; set; }PlaysInline
HtmlElements.g.csGets or sets a value indicating whether the element has the playsinline content attribute.
public bool PlaysInline { get; set; }Poster
HtmlElements.g.csGets or sets the poster content attribute, as a URL resolved against the base URL of the document.
public string Poster { get; set; }VideoHeight
VideoElement.csGets the natural height of the video in CSS pixels (https://html.spec.whatwg.org/multipage/media.html#dom-video-videoheight), or 0 when the dimensions are not known (the ready state is HAVE_NOTHING, or the resource has no video).
public uint VideoHeight { get; }VideoWidth
VideoElement.csGets the natural width of the video in CSS pixels (https://html.spec.whatwg.org/multipage/media.html#dom-video-videowidth), or 0 when the dimensions are not known (the ready state is HAVE_NOTHING, or the resource has no video).
public uint VideoWidth { get; }Width
HtmlElements.g.csGets or sets the value of the width content attribute.
public uint Width { get; set; }Methods
| Name | Description |
|---|---|
| GetVideoPlaybackQuality() | Returns the playback quality metrics of the video (https://w3c.github.io/media-playback-quality/#dom-htmlvideoelement-getvideoplaybackquality): the numbers of frames reported by the player of the media backend (MediaPlayer.TotalVideoFrames, MediaPlayer.DroppedVideoFrames; 0 without player), at the current time. |
GetVideoPlaybackQuality()
VideoElement.csReturns the playback quality metrics of the video (https://w3c.github.io/media-playback-quality/#dom-htmlvideoelement-getvideoplaybackquality): the numbers of frames reported by the player of the media backend (MediaPlayer.TotalVideoFrames, MediaPlayer.DroppedVideoFrames; 0 without player), at the current time.
public VideoPlaybackQuality GetVideoPlaybackQuality()