W3cubDocs

/DOM

TextTrackCue

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.

Properties

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.id
A DOMString that identifies the cue.
TextTrackCue.startTime
A double that represents the video time that the cue will start being displayed.
TextTrackCue.endTime
A double that represents the video time that the cue will stop being displayed.
TextTrackCue.pauseOnExit
A boolean for whether the video will pause when this cue stops being displayed.

Event handlers

TextTrackCue.onenter
The event handler for the enter event.
TextTrackCue.onexit
The event handler for the exit event.

Specifications

Browser compatibility

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