mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 17:01:20 -08:00
优化gif demo
This commit is contained in:
1 parent
c3bc0f5270
commit
0eaf9b9b3b
4 files changed
+8
-8
No files matched your search
@@ -125,11 +125,10 @@ function artplayerPluginGif(art) {
|
||||
|
||||
return {
|
||||
name: 'artplayerPluginGif',
|
||||
isProcessing,
|
||||
create(config = {}, callback) {
|
||||
isProcessing = true;
|
||||
loading.show();
|
||||
art.emit('artplayerPluginGif:create:start');
|
||||
art.emit('artplayerPluginGif:start');
|
||||
notice.show(i18n.get('Start creating gif...'), false);
|
||||
console.log(`Start time: ${config.offset || 0} s, Duration: ${config.numFrames / 10 || 1}`);
|
||||
gifshot.createGIF(
|
||||
@@ -150,7 +149,7 @@ function artplayerPluginGif(art) {
|
||||
|
||||
isProcessing = false;
|
||||
loading.hide();
|
||||
art.emit('artplayerPluginGif:create:end');
|
||||
art.emit('artplayerPluginGif:end');
|
||||
},
|
||||
);
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user