Skip to content

Advanced SubStation Alpha subtitle plugin for videojs using SABRE.js

License

Notifications You must be signed in to change notification settings

SABRE-JS/videojs-ass-sabre

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

videojs-ass

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

Usage

Initialize the ass_sabre plugin with and provide a subtitle track of the file along with a metadata text track with the label fonts which contains a JSON array of urls of fonts to load, one of these must be the font Arial:

videojs('player_id', {
  plugins: {
    ass_sabre: {
      renderMode: 'bitmap'
    }
  }
}
Option Default Description
renderMode bitmap This may either be set to 2d or bitmap, bitmap may be faster, but 2d is compatable with more browsers.

About

Advanced SubStation Alpha subtitle plugin for videojs using SABRE.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 89.8%
  • HTML 9.0%
  • CSS 1.2%