Miss any of our Open RFC calls?Watch the recordings here! »

artplayer-plugin-subtitle

1.0.5 • Public • Published

artplayer-plugin-subtitle

Subtitle plugin for ArtPlayer

Install

Install with npm

$ npm install artplayer-plugin-subtitle

Or install with yarn

$ yarn add artplayer-plugin-subtitle
import artplayerPluginSubtitle from 'artplayer-plugin-subtitle';

Or umd builds are also available

<script src="path/to/artplayer-plugin-subtitle.js"></script>

Will expose the global variable to window.artplayerPluginSubtitle.

Usage

<div class="artplayer-app"></div>
var art = new Artplayer({
    container: '.artplayer-app',
    url: 'path/to/video.mp4',
    plugins: [
        artplayerPluginSubtitle,
    ],
});
 
// There will be a slider in the settings panel.
// Or, you can set subtitle offset time by yourself, range from -5 to 5.
art.artplayerPluginSubtitle.set(-1);

License

MIT © Harvey Zack

Keywords

Install

npm i artplayer-plugin-subtitle

DownloadsWeekly Downloads

6

Version

1.0.5

License

MIT

Unpacked Size

7.72 kB

Total Files

5

Last publish

Collaborators

  • avatar