mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 13:51:20 -08:00
修复 gif demo 错误
This commit is contained in:
1 parent
52b6693da2
commit
dc8337dc65
5 files changed
+26
-30
No files matched your search
@@ -2,7 +2,7 @@ import gifshot from 'gifshot';
|
||||
import b64toBlob from 'b64-to-blob';
|
||||
|
||||
function artplayerPluginGif(art) {
|
||||
const { errorHandle, clamp, downloadImage } = art.constructor.utils;
|
||||
const { errorHandle, clamp, downloadFile } = art.constructor.utils;
|
||||
const {
|
||||
i18n,
|
||||
notice,
|
||||
@@ -83,7 +83,7 @@ function artplayerPluginGif(art) {
|
||||
gifWidth: (videoWidth / videoHeight) * 200,
|
||||
},
|
||||
image => {
|
||||
downloadImage(image, `${title || 'unnamed'}.gif`);
|
||||
downloadFile(image, `${title || 'unnamed'}.gif`);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user