Options
All
  • Public
  • Public/Protected
  • All
Menu

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.

Hierarchy

  • EventTarget
    • TextTrackCue

Index

Properties

endTime: number

Returns the text track cue end time, in seconds.

Can be set.

id: string

Returns the text track cue identifier.

Can be set.

onenter: null | ((this: internal.TextTrackCue, ev: Event) => any)
onexit: null | ((this: internal.TextTrackCue, ev: Event) => any)
pauseOnExit: boolean

Returns true if the text track cue pause-on-exit flag is set, false otherwise.

Can be set.

startTime: number

Returns the text track cue start time, in seconds.

Can be set.

track: null | internal.TextTrack

Returns the TextTrack object to which this text track cue belongs, if any, or null otherwise.

Methods

  • addEventListener<K>(type: K, listener: ((this: internal.TextTrackCue, ev: TextTrackCueEventMap[K]) => any), options?: boolean | AddEventListenerOptions): void
  • addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void
  • dispatchEvent(event: Event): boolean
  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    Parameters

    • event: Event

    Returns boolean

  • removeEventListener<K>(type: K, listener: ((this: internal.TextTrackCue, ev: TextTrackCueEventMap[K]) => any), options?: boolean | EventListenerOptions): void
  • removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void

Generated using TypeDoc