mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-15 09:06:16 -08:00
优化gif demo
This commit is contained in:
1 parent
c3bc0f5270
commit
0eaf9b9b3b
4 files changed
+8
-8
No files matched your search
@@ -2844,13 +2844,12 @@
|
||||
});
|
||||
return {
|
||||
name: 'artplayerPluginGif',
|
||||
isProcessing: isProcessing,
|
||||
create: function create() {
|
||||
var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
||||
var callback = arguments.length > 1 ? arguments[1] : undefined;
|
||||
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: ".concat(config.offset || 0, " s, Duration: ").concat(config.numFrames / 10 || 1));
|
||||
gifshot.createGIF(objectSpread({}, config, {
|
||||
@@ -2868,7 +2867,7 @@
|
||||
|
||||
isProcessing = false;
|
||||
loading.hide();
|
||||
art.emit('artplayerPluginGif:create:end');
|
||||
art.emit('artplayerPluginGif:end');
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user