TextTrackCue

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.

MDN Reference

Inheritors

Properties

Link copied to clipboard
external var endTime: Double

The endTime property of the TextTrackCue interface returns and sets the end time of the cue.

Link copied to clipboard
external var id: String

The id property of the TextTrackCue interface returns and sets the identifier for this cue.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external var pauseOnExit: Boolean

The pauseOnExit property of the TextTrackCue interface returns or sets the flag indicating whether playback of the media should pause when the end of the range to which this cue applies is reached.

Link copied to clipboard
external var startTime: Double

The startTime property of the TextTrackCue interface returns and sets the start time of the cue.

Link copied to clipboard
external val track: TextTrack?

The track read-only property of the TextTrackCue interface returns the TextTrack object that this cue belongs to.

Functions

Link copied to clipboard
open external fun dispatchEvent(event: Event): Boolean
Link copied to clipboard
external fun <T : Event> when(type: EventType<T>, options: ObservableEventListenerOptions?): Observable<T>