feat: Add artplayer-plugin-auto-thumbnail plugin

This commit is contained in:
Harvey Zack committed 2024-09-01 12:05:08 +08:00
1 parent c44ec85ed2
commit a33df191a4
12 files changed
+651 -354

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
// npm i artplayer-plugin-auto-thumbnail
// import artplayerPluginAutoThumbnail from 'artplayer-plugin-auto-thumbnail';
var art = new Artplayer({
container: '.artplayer-app',
url: '/assets/sample/video.mp4',
plugins: [
artplayerPluginAutoThumbnail({
width: 160,
number: 100,
scale: 1,
}),
],
});