mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-19 03:11:20 -08:00
完成gif插件
This commit is contained in:
1 parent
d535423dd8
commit
c9dfc883ab
11 files changed
+352
-54
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user