This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
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.
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 only
The 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.
| Specification |
|---|
| HTML> # texttrackcue> |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
TextTrackCue |
23 | 12 | 31 | ≤12.1 | 6 | 25 | 31 | ≤12.1 | 7 | 1.5 | 4.4 | 7 |
endTime |
23 | 12 | 31 | ≤12.1 | 6 | 25 | 31 | ≤12.1 | 7 | 1.5 | 4.4 | 7 |
enter_event |
23 | 12 | 31 | ≤12.1 | 6 | 25 | 31 | ≤12.1 | 7 | 1.5 | 4.4 | 7 |
exit_event |
23 | 12 | 31 | ≤12.1 | 6 | 25 | 31 | ≤12.1 | 7 | 1.5 | 4.4 | 7 |
id |
23 | 12 | 31 | ≤12.1 | 6 | 25 | 31 | ≤12.1 | 7 | 1.5 | 4.4 | 7 |
pauseOnExit |
23 | 12 | 31 | ≤12.1 | 6 | 25 | 31 | ≤12.1 | 7 | 1.5 | 4.4 | 7 |
startTime |
23 | 12 | 31 | ≤12.1 | 6 | 25 | 31 | ≤12.1 | 7 | 1.5 | 4.4 | 7 |
track |
23 | 12 | 31 | ≤12.1 | 6 | 25 | 31 | ≤12.1 | 7 | 1.5 | 4.4 | 7 |
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue