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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    64
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    64
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i videojs-ass-es6

Weekly Downloads

64

Version

0.0.4

License

Apache-2.0

Last publish

Collaborators

  • aviinl