mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-28 18:41:20 -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 $popups = document.querySelector('.popups');
|
||||||
var $popinner = document.querySelector('.popinner');
|
var $popinner = document.querySelector('.popinner');
|
||||||
var $artplayer = document.querySelector('.artplayer-app');
|
var $artplayer = document.querySelector('.artplayer-app');
|
||||||
var url = 'https://zhw2590582.github.io/assets-cdn';
|
|
||||||
|
|
||||||
$artplayer.innerHTML = 'Drop video file here or click to upload.';
|
$artplayer.innerHTML = 'Drop video file here or click to upload.';
|
||||||
var thumbnail = new ArtplayerToolThumbnail({
|
var thumbnail = new ArtplayerToolThumbnail({
|
||||||
fileInput: $artplayer,
|
fileInput: $artplayer,
|
||||||
delay: 300,
|
delay: 300, // 延迟
|
||||||
number: 60,
|
number: 60, // 数量
|
||||||
width: 160,
|
width: 160, // 宽度
|
||||||
height: 90,
|
height: 90, // 高度
|
||||||
column: 10,
|
column: 10, // 列数
|
||||||
});
|
});
|
||||||
|
|
||||||
thumbnail.on('file', function(file) {
|
thumbnail.on('file', function(file) {
|
||||||
@@ -50,6 +49,7 @@ thumbnail.on('done', function() {
|
|||||||
new Artplayer({
|
new Artplayer({
|
||||||
container: $artplayer,
|
container: $artplayer,
|
||||||
url: thumbnail.videoUrl,
|
url: thumbnail.videoUrl,
|
||||||
|
poster: thumbnail.thumbnailUrl,
|
||||||
thumbnails: {
|
thumbnails: {
|
||||||
url: thumbnail.thumbnailUrl,
|
url: thumbnail.thumbnailUrl,
|
||||||
number: thumbnail.option.number,
|
number: thumbnail.option.number,
|
||||||
@@ -59,4 +59,4 @@ thumbnail.on('done', function() {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
console.log('Build player complete');
|
console.log('Build player complete');
|
||||||
});
|
});
|
||||||
Reference in new issue
Block a user