完成gif插件

This commit is contained in:
Harvey Zack committed 2018-12-06 15:39:47 +08:00
1 parent d535423dd8
commit c9dfc883ab
11 files changed
+352 -54

No files matched your search

+4 -5
View File
@@ -98,8 +98,10 @@ var art = new Artplayer({
{
name: 'preview',
position: 'right',
index: 1,
html: '打开'
html: '打开',
mounted: $preview => {
art.plugins.localPreview.attach($preview);
},
},
],
icons: {
@@ -108,9 +110,6 @@ var art = new Artplayer({
});
art.on('firstCanplay', () => {
var preview = document.querySelector('.art-control-preview');
art.plugins.localPreview.attach(preview);
art.on('resize', $player => {
art.controls.quality.show();
art.controls.setting.show();