修改字幕插件

This commit is contained in:
Harvey Zack committed 2018-11-23 17:38:12 +08:00
1 parent 729c734b56
commit c162d8493b
10 files changed
+140 -100

No files matched your search

+5 -3
View File
@@ -39,11 +39,13 @@ var art = new Artplayer({
container: '.artplayer-app',
url: 'path/to/video.mp4',
plugins: [
artplayerPluginSubtitle({
time: -1, // Subtitle delay time, ranging from -10 to 10
}),
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