TextTrackList

The TextTrackList interface is used to represent a list of the text tracks defined for the associated video or audio element, with each track represented by a separate textTrack object in the list.

MDN Reference

Properties

Link copied to clipboard
open override val length: Int

The read-only TextTrackList property length returns the number of entries in the TextTrackList, each of which is a TextTrack representing one track in the media element.

Functions

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

The TextTrackList method getTrackById() returns the first TextTrack object from the track list whose id matches the specified string.

Link copied to clipboard