AngleSharp by AngleSharp

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

.NET API 888,832 bytes

 HtmlVideoElement

Represents the HTML video element.
using AngleSharp.Dom; using AngleSharp.Dom.Events; using AngleSharp.Io; using AngleSharp.Media; using AngleSharp.Media.Dom; using AngleSharp.Text; using System.Runtime.CompilerServices; namespace AngleSharp.Html.Dom { [System.Runtime.CompilerServices.Nullable(new byte[] { 0, 1 })] internal sealed class HtmlVideoElement : HtmlMediaElement<IVideoInfo>, IHtmlVideoElement, IHtmlMediaElement, IHtmlElement, IElement, INode, IEventTarget, IMarkupFormattable, IParentNode, IChildNode, INonDocumentTypeChildNode, IGlobalEventHandlers, IMediaController, ILoadableElement { [System.Runtime.CompilerServices.Nullable(2)] private IVideoTrackList _videos; [System.Runtime.CompilerServices.Nullable(2)] public override IVideoTrackList VideoTracks { [System.Runtime.CompilerServices.NullableContext(2)] get { return _videos; } } public int DisplayWidth { get { return this.GetOwnAttribute(AttributeNames.Width).ToInteger(OriginalWidth); } set { this.SetOwnAttribute(AttributeNames.Width, value.ToString(), false); } } public int DisplayHeight { get { return this.GetOwnAttribute(AttributeNames.Height).ToInteger(OriginalHeight); } set { this.SetOwnAttribute(AttributeNames.Height, value.ToString(), false); } } public int OriginalWidth => base.Media?.Width ?? 0; public int OriginalHeight => base.Media?.Height ?? 0; [System.Runtime.CompilerServices.Nullable(2)] public string Poster { [System.Runtime.CompilerServices.NullableContext(2)] get { return this.GetUrlAttribute(AttributeNames.Poster); } [System.Runtime.CompilerServices.NullableContext(2)] set { this.SetOwnAttribute(AttributeNames.Poster, value, false); } } [System.Runtime.CompilerServices.NullableContext(1)] public HtmlVideoElement(Document owner, [System.Runtime.CompilerServices.Nullable(2)] string prefix = null) : base(owner, TagNames.Video, prefix) { _videos = null; } } }