mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-15 17:16:16 -08:00
完成截图工具例子
This commit is contained in:
1 parent
17dc3af41f
commit
7fc370b6d9
4 files changed
+63
-15
No files matched your search
@@ -60,7 +60,9 @@
|
||||
thumbnail.on('video', function(video) {
|
||||
console.log('Video size: ' + video.videoWidth + ' x ' + video.videoHeight);
|
||||
console.log('Video duration: ' + video.duration + 's');
|
||||
thumbnail.setup(getConfig()).start();
|
||||
thumbnail.setup(getConfig()).start().then(() => {
|
||||
thumbnail.download();
|
||||
});
|
||||
});
|
||||
|
||||
thumbnail.on('canvas', function(canvas) {
|
||||
|
||||
@@ -303,7 +303,7 @@
|
||||
};
|
||||
});
|
||||
this.processing = true;
|
||||
runPromisesInSeries(promiseList).then(function () {
|
||||
return runPromisesInSeries(promiseList).then(function () {
|
||||
return sleep(delay * 2).then(function () {
|
||||
_this4.processing = false;
|
||||
|
||||
@@ -380,6 +380,7 @@
|
||||
elink.click();
|
||||
document.body.removeChild(elink);
|
||||
this.emit('download', name);
|
||||
return this;
|
||||
}
|
||||
}, {
|
||||
key: "errorHandle",
|
||||
|
||||
Reference in new issue
Block a user