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.HTMLMediaElement.textTracks
. The individual tracks can be accessed using array syntax or functions such as forEach()
for example.length | onaddtrack |
onchange | onremovetrack |
getTrackById() | addEventListener() |
dispatchEvent() | removeEventListener() |