3.5.27 • Published 4 years ago
artplayer-plugin-ass v3.5.27
artplayer-plugin-ass
Ass plugin for ArtPlayer, use weizhenye/ASS as a dependency
Demo
Checkout the demo from Github Pages
Install
Install with npm
$ npm install artplayer-plugin-ass
Or install with yarn
$ yarn add artplayer-plugin-ass
import artplayerPluginAss from 'artplayer-plugin-ass';
Or umd builds are also available
<script src="artplayer-plugin-ass.js"></script>
Will expose the global variable to window.artplayerPluginAss
.
Usage
var art = new Artplayer({
container: '.artplayer-app',
url: 'path/to/video.mp4',
plugins: [artplayerPluginAss('path/to/subtitle.ass')],
});
License
MIT © Harvey Zack