TextTrackCues represent a string of text that will be displayed for some duration of time on a TextTrack
. This includes the start and end times that the cue will be displayed. A TextTrackCue cannot be used directly, instead one of the derived types (e.g. VTTCue
) must be used.
This interface also inherits properties from EventTarget
.
TextTrackCue.track
Read only
TextTrack
that this cue belongs to, or null
if it doesn't belong to any.TextTrackCue.id
DOMString
that identifies the cue.TextTrackCue.startTime
double
that represents the video time that the cue will start being displayed.TextTrackCue.endTime
double
that represents the video time that the cue will stop being displayed.TextTrackCue.pauseOnExit
boolean
for whether the video will pause when this cue stops being displayed.TextTrackCue.onenter
enter
event.TextTrackCue.onexit
exit
event.Specification | Status | Comment |
---|---|---|
HTML Living Standard The definition of 'TextTrackCue' in that specification. | Living Standard | |
HTML5 The definition of 'TextTrackCue' in that specification. | Recommendation | Initial definition |
tbd
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue