0.0.4 • Published 7 years ago

videojs-ass-es6 v0.0.4

Weekly downloads
4
License
Apache-2.0
Repository
github
Last release
7 years ago

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'}
      ]
    }
  }
});
OptionDefaultDescription
src-1.ass / .ssa source.
label-2subtitle track label that shows up in the subtitles picker
label-3subtitle 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
0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago