HTMLVideoElement
Represents the HTML video element.
namespace AngleSharp.DOM.Html
{
public sealed class HTMLVideoElement : HTMLMediaElement
{
public const string Tag = "video";
private uint videoWidth;
private uint videoHeight;
public uint Width {
get {
return Element.ToInteger(GetAttribute("width"), videoWidth);
}
set {
SetAttribute("width", value.ToString());
}
}
public uint Height {
get {
return Element.ToInteger(GetAttribute("height"), videoHeight);
}
set {
SetAttribute("height", value.ToString());
}
}
public uint VideoWidth => videoWidth;
public uint VideoHeight => videoHeight;
public string Poster {
get {
return GetAttribute("poster");
}
set {
SetAttribute("poster", value);
}
}
protected internal override bool IsSpecial => false;
public HTMLVideoElement()
{
_name = "video";
}
}
}