HtmlVideoElement Class

https://html.spec.whatwg.org/multipage/media.html#htmlvideoelement

public sealed class HtmlVideoElement : HtmlMediaElement
Inheritance
HtmlMediaElement HtmlVideoElement

Properties

NameDescription
HeightGets or sets the value of the height content attribute.
PlaysInlineGets or sets a value indicating whether the element has the playsinline content attribute.
PosterGets or sets the poster content attribute, as a URL resolved against the base URL of the document.
VideoHeightGets 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).
VideoWidthGets 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).
WidthGets or sets the value of the width content attribute.

Gets or sets the value of the height content attribute.

public uint Height { get; set; }

Gets or sets a value indicating whether the element has the playsinline content attribute.

public bool PlaysInline { get; set; }

Gets or sets the poster content attribute, as a URL resolved against the base URL of the document.

public string Poster { get; set; }

VideoHeight

VideoElement.cs

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).

public uint VideoHeight { get; }

VideoWidth

VideoElement.cs

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).

public uint VideoWidth { get; }

Gets or sets the value of the width content attribute.

public uint Width { get; set; }

Methods

NameDescription
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.cs

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.

public VideoPlaybackQuality GetVideoPlaybackQuality()