AngleSharp by Florian Rappl

<PackageReference Include="AngleSharp" Version="0.9.1" />

.NET API 1,208,832 bytes

 HtmlVideoElement

Represents the HTML video element.
using AngleSharp.Dom.Css; using AngleSharp.Dom.Media; using AngleSharp.Extensions; using AngleSharp.Html; using AngleSharp.Services.Media; namespace AngleSharp.Dom.Html { internal sealed class HtmlVideoElement : HTMLMediaElement<IVideoInfo>, IHtmlVideoElement, IHtmlMediaElement, IHtmlElement, IElement, INode, IEventTarget, IMarkupFormattable, IParentNode, IChildNode, INonDocumentTypeChildNode, IElementCssInlineStyle, IMediaController { private IVideoTrackList _videos; public override IVideoTrackList VideoTracks => _videos; public int DisplayWidth { get { return GetOwnAttribute(AttributeNames.Width).ToInteger(OriginalWidth); } set { SetOwnAttribute(AttributeNames.Width, value.ToString()); } } public int DisplayHeight { get { return GetOwnAttribute(AttributeNames.Height).ToInteger(OriginalHeight); } set { SetOwnAttribute(AttributeNames.Height, value.ToString()); } } public int OriginalWidth { get { if (_media == null) return 0; return _media.Width; } } public int OriginalHeight { get { if (_media == null) return 0; return _media.Height; } } public string Poster { get { return GetUrlAttribute(AttributeNames.Poster); } set { SetOwnAttribute(AttributeNames.Poster, value); } } public HtmlVideoElement(Document owner, string prefix = null) : base(owner, Tags.Video, prefix) { _videos = null; } } }