VideoTrackList interface is used to represent a list of the video tracks contained within a <video> element, with each track represented by a separate VideoTrack object in the list.HTMLMediaElement.videoTracks. The individual tracks can be accessed using array syntax or functions such as forEach() for example.The number of tracks in the list.
Promise<number>The index of the currently selected track, if any, or −1 otherwise.
Promise<number>Returns the VideoTrack found within the VideoTrackList whose id matches the specified string. If no match is found, null is returned.
string. A string indicating the ID of the track to locate within the track list.VideoTrackonaddtrack | onchange |
onremovetrack |
addEventListener() | dispatchEvent() |
removeEventListener() |