new TextTrackCueList(cues)

[tracks/text-track-cue-list.js](https://docs.videojs.com/tracks_text-track-cue-list.js.html), [line 28](https://docs.videojs.com/tracks_text-track-cue-list.js.html#line28)

Create an instance of this class..

Parameters:
NameTypeDescription
cuesArray

A list of cues to be initialized with

See:

Members

length :number

[tracks/text-track-cue-list.js](https://docs.videojs.com/tracks_text-track-cue-list.js.html), [line 39](https://docs.videojs.com/tracks_text-track-cue-list.js.html#line39)

The current number of TextTrackCues in the TextTrackCueList.

Methods

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

[tracks/text-track-cue-list.js](https://docs.videojs.com/tracks_text-track-cue-list.js.html), [line 97](https://docs.videojs.com/tracks_text-track-cue-list.js.html#line97)

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:

TextTrackCueList~TextTrackCue | null -

A single cue or null if none was found.

Type Definitions

TextTrackCue

[tracks/text-track-cue-list.js](https://docs.videojs.com/tracks_text-track-cue-list.js.html), [line 5](https://docs.videojs.com/tracks_text-track-cue-list.js.html#line5)

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.