TextTrackCueList(cues)

A List of TextTrackCues.

new TextTrackCueList(cues)

Create an instance of this class..

Parameters:
Name Type Description
cues Array

A list of cues to be initialized with

See:

Members

length :number

The current number of TextTrackCues in the TextTrackCueList.

Methods

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

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

Parameters:
Name Type Description
id string

The id of the cue that should be searched for.

Returns:
TextTrackCueList~TextTrackCue | null -

A single cue or null if none was found.

Type Definitions

TextTrackCue

Properties:
Name Type Description
id string

The unique id for this text track cue

startTime number

The start time for this text track cue

endTime number

The end time for this text track cue

pauseOnExit boolean

Pause when the end time is reached if true.

See: