Video audioTracksProperty
Examples
Get the number of available audio tracks:
var x = document.getElementById("myVideo").audioTracks.length;
Try it Yourself »
Definition and Usage
The audioTracks property returns an AudioTrackList object.
The AudioTrackList object represents the available audio tracks of the audio/video.
Each available audio track is represented by an AudioTrack object.
Browser Support
![]()
![]()
![]()
![]()
![]()
The audioTracks property is not supported by any mainstream browser.
Syntax
videoObject.audioTracks
Return Value
| Type | Description |
|---|---|
| AudioTrackList object |
Represents the available audio tracks of the audio/video. AudioTrackList object:
Note:The index of the first available AudioTrack object is 0. |
| AudioTrack object |
Represents an audio track. AudioTrack object properties:
|
Video Object Other Extensions