TextTrackCueList

The TextTrackCueList interface of the WebVTT API is an array-like object that represents a dynamically updating list of TextTrackCue objects.

MDN Reference

Properties

Link copied to clipboard
open override val length: Int

The length read-only property of the TextTrackCueList interface returns the number of cues in the list.

Functions

Link copied to clipboard
open operator fun get(index: Int): TextTrackCue
open operator fun get(key: Symbol.iterator): () -> JsIterator<TextTrackCue>
Link copied to clipboard

The getCueById() method of the TextTrackCueList interface returns the first VTTCue in the list represented by the TextTrackCueList object whose identifier matches the value of id.

Link copied to clipboard
open inline operator fun iterator(): Iterator<TextTrackCue>