This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

AudioTrack

Summary

AudioTrack is an object representing an audio portion of a video element.

Properties

enabled
Returns true if the given track is active, and false otherwise. Can be set, to change whether the track is enabled or not. If multiple audio tracks are enabled simultaneously, they are mixed.
id
Returns the ID of the given track. This is the ID that can be used with a fragment identifier if the format supports the Media Fragments URI syntax, and that can be used with the getTrackById() method.
kind
Returns the category the given track falls into.
label
Returns the label of the given track, if known, or the empty string otherwise.
language
Returns the language of the given track, if known, or the empty string otherwise.

Methods

No methods.

Events

No events.

Notes

Audio tracks are represented on a video element as an AudioTrackList object, which contains one or more audio tracks.

Related specifications

W3C HTML5 Specification
W3C Editor’s Draft

Attributions