HTML | DOM Audio audioTracks Property
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 browser supported by HTML | DOM Audio audioTracks Property are listed below:
- Google Chrome
- Internet Explorer
Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML course.