mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-12 15:26:16 -08:00
Update thumbnail.js
This commit is contained in:
1 parent
62c05ef659
commit
5ed7f240fa
1 file changed
+7
-7
@@ -1,16 +1,15 @@
|
||||
var $popups = document.querySelector('.popups');
|
||||
var $popinner = document.querySelector('.popinner');
|
||||
var $artplayer = document.querySelector('.artplayer-app');
|
||||
var url = 'https://zhw2590582.github.io/assets-cdn';
|
||||
|
||||
$artplayer.innerHTML = 'Drop video file here or click to upload.';
|
||||
var thumbnail = new ArtplayerToolThumbnail({
|
||||
fileInput: $artplayer,
|
||||
delay: 300,
|
||||
number: 60,
|
||||
width: 160,
|
||||
height: 90,
|
||||
column: 10,
|
||||
delay: 300, // 延迟
|
||||
number: 60, // 数量
|
||||
width: 160, // 宽度
|
||||
height: 90, // 高度
|
||||
column: 10, // 列数
|
||||
});
|
||||
|
||||
thumbnail.on('file', function(file) {
|
||||
@@ -50,6 +49,7 @@ thumbnail.on('done', function() {
|
||||
new Artplayer({
|
||||
container: $artplayer,
|
||||
url: thumbnail.videoUrl,
|
||||
poster: thumbnail.thumbnailUrl,
|
||||
thumbnails: {
|
||||
url: thumbnail.thumbnailUrl,
|
||||
number: thumbnail.option.number,
|
||||
@@ -59,4 +59,4 @@ thumbnail.on('done', function() {
|
||||
},
|
||||
});
|
||||
console.log('Build player complete');
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user