0.0.4 • Published 7 years ago
videojs-ass-es6 v0.0.4
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:
- This property is required!
- Has fallback values but you should provide a better label.
- Should be the 2 character language code of the subtitle