Update thumbnail.js

This commit is contained in:
Harvey committed 2021-12-10 17:27:52 +08:00
1 parent e5e7498a2b
commit d60de65657
1 file changed
+4 -1
+4 -1
View File
@@ -50,13 +50,15 @@ thumbnail.on('done', function () {
$popups.style.display = 'none';
thumbnail.download();
console.log('Build preview image complete');
Artplayer.instances.forEach(function (art) {
[...Artplayer.instances].forEach(function (art) {
art.destroy(true);
});
new Artplayer({
container: $artplayer,
url: thumbnail.videoUrl,
autoSize: true,
poster: thumbnail.thumbnailUrl,
thumbnails: {
url: thumbnail.thumbnailUrl,
@@ -66,5 +68,6 @@ thumbnail.on('done', function () {
column: thumbnail.option.column,
},
});
console.log('Build player complete');
});