Table of Contents

Class TextTrackCue

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The TextTrackCue interface of the WebVTT API is the abstract base class for the various derived cue types, such as VTTCue; you will work with these derived types rather than the base class.

[Value("TextTrackCue")]
public class TextTrackCue : EventTarget
Inheritance
TextTrackCue
Derived
Inherited Members

Remarks

These cues represent strings of text presented for some duration of time during the performance of a TextTrack. The cue includes the start time (the time at which the text will be displayed) and the end time (the time at which it will be removed from the display), as well as other information.

See also on MDN

Constructors

TextTrackCue()

public TextTrackCue()

Properties

EndTime

The endTime property of the TextTrackCue interface returns and sets the end time of the cue.

[Value("endTime")]
public double EndTime { get; set; }

Property Value

double

A number representing the end time, in seconds.

Remarks

Id

The id property of the TextTrackCue interface returns and sets the identifier for this cue.

[Value("id")]
public string Id { get; set; }

Property Value

string

A string containing the ID of this cue.

Remarks

Onenter

[Value("onenter")]
public EventHandlerNonNull Onenter { get; set; }

Property Value

EventHandlerNonNull

Onexit

[Value("onexit")]
public EventHandlerNonNull Onexit { get; set; }

Property Value

EventHandlerNonNull

PauseOnExit

The pauseOnExit property of the TextTrackCue interface returns or sets the flag indicating whether playback of the media should pause when the end of the range to which this cue applies is reached.

[Value("pauseOnExit")]
public bool PauseOnExit { get; set; }

Property Value

bool

A Boolean, true if the media will pause.

Remarks

StartTime

The startTime property of the TextTrackCue interface returns and sets the start time of the cue.

[Value("startTime")]
public Number StartTime { get; set; }

Property Value

Number

A number representing the start time, in seconds.

Remarks

Track

The track read-only property of the TextTrackCue interface returns the TextTrack object that this cue belongs to.

[Value("track")]
public TextTrack? Track { get; }

Property Value

TextTrack

A TextTrack object.

Remarks