mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-28 02:01:20 -08:00
Update thumbnail.js
This commit is contained in:
1 parent
e5e7498a2b
commit
d60de65657
1 file changed
+4
-1
@@ -50,13 +50,15 @@ thumbnail.on('done', function () {
|
|||||||
$popups.style.display = 'none';
|
$popups.style.display = 'none';
|
||||||
thumbnail.download();
|
thumbnail.download();
|
||||||
console.log('Build preview image complete');
|
console.log('Build preview image complete');
|
||||||
Artplayer.instances.forEach(function (art) {
|
|
||||||
|
[...Artplayer.instances].forEach(function (art) {
|
||||||
art.destroy(true);
|
art.destroy(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
new Artplayer({
|
new Artplayer({
|
||||||
container: $artplayer,
|
container: $artplayer,
|
||||||
url: thumbnail.videoUrl,
|
url: thumbnail.videoUrl,
|
||||||
|
autoSize: true,
|
||||||
poster: thumbnail.thumbnailUrl,
|
poster: thumbnail.thumbnailUrl,
|
||||||
thumbnails: {
|
thumbnails: {
|
||||||
url: thumbnail.thumbnailUrl,
|
url: thumbnail.thumbnailUrl,
|
||||||
@@ -66,5 +68,6 @@ thumbnail.on('done', function () {
|
|||||||
column: thumbnail.option.column,
|
column: thumbnail.option.column,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log('Build player complete');
|
console.log('Build player complete');
|
||||||
});
|
});
|
||||||
Reference in new issue
Block a user