The TextTrackCue interface of the WebVTT API is the abstract base class for the various derived cue types, such as VTTCue and DataCue; you will work with these derived types rather than the base class.
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.
This interface also inherits properties from EventTarget.
TextTrackCue.track Read onlyThe TextTrack that this cue belongs to, or null if it doesn't belong to any.
TextTrackCue.idA string that identifies the cue.
TextTrackCue.startTimeA double that represents the video time that the cue will start being displayed, in seconds.
TextTrackCue.endTimeA double that represents the video time that the cue will stop being displayed, in seconds.
TextTrackCue.pauseOnExitA boolean for whether the video will pause when this cue stops being displayed.
enterFired when a cue becomes active.
exitFired when the cue has stopped being active.