TextTrackCue Class

https://html.spec.whatwg.org/multipage/media.html#texttrackcue: the unit of time-sensitive data of a text track. The cues are VttCue objects.

public abstract class TextTrackCue : EventTarget
Inheritance
EventTarget TextTrackCue

Properties

NameDescription
EndTimeGets or sets the end time of the cue, in seconds (https://html.spec.whatwg.org/multipage/media.html#dom-texttrackcue-endtime): positive infinity for an unbounded cue.
IdGets or sets the identifier of the cue (https://html.spec.whatwg.org/multipage/media.html#dom-texttrackcue-id).
OnEnterGets or sets the event handler of the enter event.
OnExitGets or sets the event handler of the exit event.
PauseOnExitGets or sets a value indicating whether the playback of the media resource pauses when the end of the cue is reached (https://html.spec.whatwg.org/multipage/media.html#dom-texttrackcue-pauseonexit).
StartTimeGets or sets the start time of the cue, in seconds (https://html.spec.whatwg.org/multipage/media.html#dom-texttrackcue-starttime).
TrackGets the text track the cue belongs to, or null (https://html.spec.whatwg.org/multipage/media.html#dom-texttrackcue-track).

Gets or sets the end time of the cue, in seconds (https://html.spec.whatwg.org/multipage/media.html#dom-texttrackcue-endtime): positive infinity for an unbounded cue.

public double EndTime { get; set; }

Property value

double

Exceptions

ArgumentException
The value is negative infinity or NaN.

See also

Gets or sets the identifier of the cue (https://html.spec.whatwg.org/multipage/media.html#dom-texttrackcue-id).

public string Id { get; set; }

Gets or sets the event handler of the enter event.

public Action<Event>? OnEnter { get; set; }

Gets or sets the event handler of the exit event.

public Action<Event>? OnExit { get; set; }

PauseOnExit

TextTracks.cs

Gets or sets a value indicating whether the playback of the media resource pauses when the end of the cue is reached (https://html.spec.whatwg.org/multipage/media.html#dom-texttrackcue-pauseonexit).

public bool PauseOnExit { get; set; }

StartTime

TextTracks.cs

Gets or sets the start time of the cue, in seconds (https://html.spec.whatwg.org/multipage/media.html#dom-texttrackcue-starttime).

public double StartTime { get; set; }

Gets the text track the cue belongs to, or null (https://html.spec.whatwg.org/multipage/media.html#dom-texttrackcue-track).

public TextTrack? Track { get; }