添加字幕本地预览

This commit is contained in:
Harvey committed 2019-11-14 14:00:24 +08:00
1 parent 2878705e72
commit 9cf1571ef8
15 files changed
+279 -81

No files matched your search

+15 -4
View File
@@ -20,7 +20,8 @@ var art = new Artplayer({
fullscreenWeb: true,
subtitleOffset: true,
miniProgressBar: true,
localPreview: true,
localVideo: true,
localSubtitle: true,
networkMonitor: false,
autoPip: true,
mutex: true,
@@ -105,11 +106,21 @@ var art = new Artplayer({
],
controls: [
{
name: 'preview',
name: 'localVideo',
position: 'right',
html: 'OPEN',
html: 'VIDEO',
tooltip: 'Open Local Video',
mounted: $preview => {
art.plugins.localPreview.attach($preview);
art.plugins.localVideo.attach($preview);
},
},
{
name: 'localSubtitle',
position: 'right',
html: 'SUBTITLE',
tooltip: 'Open Local Subtitle',
mounted: $preview => {
art.plugins.localSubtitle.attach($preview);
},
},
],