优化gif demo

This commit is contained in:
Harvey Zack committed 2018-12-06 21:32:59 +08:00
1 parent c3bc0f5270
commit 0eaf9b9b3b
4 files changed
+8 -8

No files matched your search

+2 -3
View File
@@ -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');
},
);
},