mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-09 11:56:15 -08:00
14 lines
346 B
JavaScript
14 lines
346 B
JavaScript
// npm i artplayer-plugin-thumbnail
|
|
// import artplayerPluginThumbnail from 'artplayer-plugin-thumbnail';
|
|
|
|
var art = new Artplayer({
|
|
container: '.artplayer-app',
|
|
url: '/assets/sample/video.mp4',
|
|
plugins: [
|
|
artplayerPluginThumbnail({
|
|
width: 160,
|
|
number: 100,
|
|
scale: 1,
|
|
}),
|
|
],
|
|
}); |