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 external 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 external fun get(index: Int): TextTrackCue
Link copied to clipboard
external fun getCueById(id: String): TextTrackCue?

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.