mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-19 19:51:20 -08:00
add gif demo
This commit is contained in:
1 parent
e47674f346
commit
2f16d173da
9 files changed
+2260
-2055
No files matched your search
@@ -28,7 +28,6 @@ function artplayerPluginGif(art) {
|
||||
i18n,
|
||||
notice,
|
||||
layers,
|
||||
controls,
|
||||
player,
|
||||
loading,
|
||||
option: { theme, title },
|
||||
@@ -94,11 +93,9 @@ function artplayerPluginGif(art) {
|
||||
}
|
||||
}
|
||||
|
||||
controls.add({
|
||||
name: 'artplayer-plugin-gif',
|
||||
position: 'right',
|
||||
html: 'GIF',
|
||||
mounted: $gif => {
|
||||
return {
|
||||
name: 'artplayerPluginGif',
|
||||
attach($gif) {
|
||||
proxy($gif, 'mousedown', () => {
|
||||
isPress = true;
|
||||
cleanTimer();
|
||||
@@ -126,10 +123,6 @@ function artplayerPluginGif(art) {
|
||||
}
|
||||
});
|
||||
},
|
||||
});
|
||||
|
||||
return {
|
||||
name: 'artplayerPluginGif',
|
||||
create(config = {}, callback) {
|
||||
isProcessing = true;
|
||||
loading.show();
|
||||
|
||||
Reference in new issue
Block a user