mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-18 10:41:20 -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) {
|
||||
|
||||
Reference in new issue
Block a user