AwaitedDOM/ TextTrackList

The TextTrackList interface is used to represent a list of the text tracks defined by the <track> element, with each track represented by a separate textTrack object in the list.
Retrieve an instance of this object with HTMLMediaElement.textTracks. The individual tracks can be accessed using array syntax or functions such as forEach() for example.

Unimplemented Specs

Properties

lengthonaddtrack
onchangeonremovetrack

Methods

getTrackById()addEventListener()
dispatchEvent()removeEventListener()

Edit this page on GitHub