Audio and video tracks

Limited availability

The audioTracks and videoTracks APIs for media elements switch audio and video tracks during playback.

Browser support (view on caniuse.com)

  • Chrome Not supported Bugs: 40126181
  • Chrome Android Not supported
  • Edge Not supported
  • Firefox Not supported
  • Firefox for Android Not supported
  • Safari 8 Released on 2014-10-16
  • Safari on iOS 8 Released on 2014-09-17

Need this feature?
Leave a 👍 on the feedback issue
Don't forget to also leave a comment explaining your specific use case.

Developer use cases

  • I'd like to serve a single video resource containing multiple audio tracks, with each audio source encoded as an independent track within the media container. This would allow the browser to expose the available audio tracks through the native API, so that users are able to independently select, enable, or disable audio sources during playback. A practical use case is playing back some video footage where multiple microphones or audio sources were recorded simultaneously, with each source stored in its own audio track inside the media container. Ideally, the browser would handle track selection and synchronisation natively, keeping all tracks aligned with the main video timeline and media buffer. I'd like to serve a single video resource containing multiple audio tracks, with each audio source encoded as an independent track within the media container. This would allow the browser to expose the available audio tracks through the native API, so that users are able to independently select, enable, or disable audio sources during playback. A practical use case is playing back some video footage where multiple microphones or audio sources were recorded simultaneously, with each source stored in its own audio track inside the media container. Ideally, the browser would handle track selection and synchronisation natively, keeping all tracks aligned with the main video timeline and media buffer. [see original comment]