videojs-ass-es6

0.0.4 • Public • Published

videojs-ass-es6

Add Advanced SubStation Alpha (ASS) subtitles support to videojs using the libjass library.

Install

For plugin that supports videojs v5.x install using either:

  • yarn add videojs-ass-es6
  • npm install videojs-ass-es6

Usage

Initialize the ass plugin with the src field like the following:

videojs('player_id', {
  plugins: {
    ass: {
      subtitles: [
        {src: 'subs/subtitles.ass', label: 'English', srclang: 'en'}
      ]
    }
  }
});
Option Default Description
src -1 .ass / .ssa source.
label -2 subtitle track label that shows up in the subtitles picker
label -3 subtitle language code

Footnotes:

  1. This property is required!
  2. Has fallback values but you should provide a better label.
  3. Should be the 2 character language code of the subtitle

Package Sidebar

Install

npm i videojs-ass-es6

Weekly Downloads

44

Version

0.0.4

License

Apache-2.0

Last publish

Collaborators

  • aviinl