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

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

Browser compatibility

tbd

Document Tags and Contributors

Tags: 
Contributors to this page: ModMaker
Last updated by: ModMaker,