完成截图工具例子

This commit is contained in:
Harvey Zack committed 2018-12-06 09:21:52 +08:00
1 parent 17dc3af41f
commit 7fc370b6d9
4 files changed
+63 -15

No files matched your search

+3 -1
View File
@@ -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) {