Audio audioTracksProperty
Example
Get the number of available audio tracks:
var x = document.getElementById("myAudio").audioTracks.length;
Try it Yourself »
Definition and Usage
The audioTracks property returns an AudioTrackList object.
Returns an AudioTrackList object representing the available audio tracks.
Each audio track represents an AudioTrack object.
Browser Support
![]()
![]()
![]()
![]()
![]()
All major browsers do not support the audioTracks property.
Syntax
audioObject.audioTracks
Return Value
| Type | Description |
|---|---|
| AudioTrackList object | Represents the available audio tracks of the audio. AudioTrackList object:
Note:(index) 0 represents the first available AudioTrack object. |
| AudioTrack object | Represents an audio track. AudioTrack object properties:
|
Audio object Other extensions