AudioTrackList
interface is used to represent a list of the audio tracks contained within a given HTML media element, with each track represented by a separate AudioTrack
object in the list.HTMLMediaElement.audioTracks
. The individual tracks can be accessed using array syntax.The number of tracks in the list.
Promise<number>
Returns the AudioTrack
found within the AudioTrackList
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.AudioTrack
onaddtrack | onchange |
onremovetrack |
addEventListener() | dispatchEvent() |
removeEventListener() |