Easy Tutorial
❮ Canvas Quadraticcurveto Att Link Sizes ❯

HTML Audio/Video DOM audioTracks Property

HTML Audio/Video DOM Reference Manual

Example

Get the number of available audio tracks:


Definition and Usage

The audioTracks property returns an AudioTrackList object.

The AudioTrackList object represents the available audio tracks for the audio/video.

Each available audio track is represented by an AudioTrack object.


Browser Support

None of the major browsers support the audioTracks property.


Syntax

Return Value

Type Description
AudioTrackList Object Represents the available audio tracks for the audio/video. AudioTrackList Object: audioTracks.length - Get the number of available audio tracks<br> audioTracks.getTrackById(id) - Get the AudioTrack object by id<br> audioTracks[index] - Get the AudioTrack object by index Note: The index of the first available AudioTrack object is 0.
AudioTrack Object Represents an audio track. Properties of the AudioTrack Object: id - Get the id of the audio track<br> kind - Get the type of the audio track (can be "alternative", "description", "main", "translation", "commentary", or "" (empty string))<br> label - Get the label of the audio track<br> language - Get the language of the audio track<br> enabled - Get or set whether the audio track is active (true false)

❮ Canvas Quadraticcurveto Att Link Sizes ❯