Files
ArtPlayer/packages/artplayer-plugin-ass
2020-12-01 12:00:49 +08:00
..
2020-12-01 12:00:49 +08:00
2020-11-24 15:48:49 +08:00
2020-11-24 15:48:49 +08:00
2020-11-24 15:48:49 +08:00
2020-12-01 12:00:49 +08:00
2020-11-24 15:48:49 +08:00

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