HtmlTrackElement Class

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

public sealed class HtmlTrackElement : HtmlElement
Inheritance
HtmlElement HtmlTrackElement

Properties

NameDescription
DefaultGets or sets a value indicating whether the element has the default content attribute.
KindGets or sets the value of the kind content attribute, limited to the known values (the canonical keyword, or the default value).
LabelGets or sets the value of the label content attribute.
ReadyStateGets the readiness state of the text track of the element (https://html.spec.whatwg.org/multipage/media.html#dom-track-readystate): HtmlTrackElement.None, HtmlTrackElement.Loading, HtmlTrackElement.Loaded or HtmlTrackElement.Error.
SrcGets or sets the src content attribute, as a URL resolved against the base URL of the document.
SrclangGets or sets the value of the srclang content attribute.
TrackGets the text track of the element (https://html.spec.whatwg.org/multipage/media.html#dom-track-track).

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

public bool Default { get; set; }

Gets or sets the value of the kind content attribute, limited to the known values (the canonical keyword, or the default value).

public string Kind { get; set; }

Gets or sets the value of the label content attribute.

public string Label { get; set; }

ReadyState

TrackElement.cs

Gets the readiness state of the text track of the element (https://html.spec.whatwg.org/multipage/media.html#dom-track-readystate): HtmlTrackElement.None, HtmlTrackElement.Loading, HtmlTrackElement.Loaded or HtmlTrackElement.Error.

public ushort ReadyState { get; }

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

public string Src { get; set; }

Gets or sets the value of the srclang content attribute.

public string Srclang { get; set; }

Gets the text track of the element (https://html.spec.whatwg.org/multipage/media.html#dom-track-track).

public TextTrack Track { get; }

Constants

NameDescription
ErrorThe ERROR constant (3).
LoadedThe LOADED constant (2).
LoadingThe LOADING constant (1).
NoneThe NONE constant (0).

Error

The ERROR constant (3).

public const ushort Error = 3

Loaded

The LOADED constant (2).

public const ushort Loaded = 2

Loading

The LOADING constant (1).

public const ushort Loading = 1

None

The NONE constant (0).

public const ushort None = 0