The Audio audioTracks Property is used for returning an AudioTrackList object. The audio tracks available for a video are represented by the AudioTrackList object.
The AudioTrack Object is used to represent an available audio track.
- AudioTrackList Object: It is used to represent the available audio tracks for the audio.
- AudioTrack Object: It is used to represent an audio track.
Below program illustrates the Audio audioTracks property :
Example: Getting the number of available audio tracks.
- Before clicking the button:
- After clicking the button:
Supported browser: The bowser supported by HTML | DOM Audio audioTracks Property are listed below:
- Goolge Chrome
- Internet Explorer