videojs-audio-tracks

0.2.1 • Public • Published

VideoJS Audio Tracks

A Videojs plugin to use with video files that contain multiple audio tracks. Useful for audio descriptions, director commentary, and additional languages.

Note

As this plugin uses the Audio Tracks API, it is only available in IE 11+ & Safari 8+. Also, it will not work in the Videojs Flash fallback.

Usage

Include:

  • videojs-audio-tracks.min.css
  • videojs-audio-tracks.min.js
  var player = videojs('example-video');
  player.AudioTracks({
    default: 0,
    descriptive: 1
  });

Example

Example using Video.js 5

Support

Browser testing for this project has been graciously donated by BrowserStack.

License

Licesned Apache 2. See LICENSE file.

Package Sidebar

Install

npm i videojs-audio-tracks

Weekly Downloads

3

Version

0.2.1

License

Apache-2.0

Last publish

Collaborators

  • sprice