TextTrackCueList

A List of TextTrackCues.

Constructor

new TextTrackCueList(cues)

Create an instance of this class..

Parameters:
NameTypeDescription
cuesArray

A list of cues to be initialized with

See

Members

length :number

The current number of TextTrackCues in the TextTrackCueList.

Type:
  • number

Methods

getCueById(id) → {TextTrackCueList~TextTrackCue|null}

Get a TextTrackCue that is currently in the TextTrackCueList by id.

Parameters:
NameTypeDescription
idstring

The id of the cue that should be searched for.

Returns:

A single cue or null if none was found.

Type: 
TextTrackCueList~TextTrackCue | null

Type Definitions

TextTrackCue

Type:
  • Object
Properties
NameTypeDescription
idstring

The unique id for this text track cue

startTimenumber

The start time for this text track cue

endTimenumber

The end time for this text track cue

pauseOnExitboolean

Pause when the end time is reached if true.

See