artplayer-plugin-ass

Ass plugin for ArtPlayer, use weizhenye/ASS as a dependency

Usage no npm install needed!

<script type="module">
  import artplayerPluginAss from 'https://cdn.skypack.dev/artplayer-plugin-ass';
</script>

README

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