mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-12 15:26:16 -08:00
添加字幕本地预览
This commit is contained in:
1 parent
2878705e72
commit
9cf1571ef8
15 files changed
+279
-81
No files matched your search
@@ -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);
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user