mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-09 03:46:16 -08:00
31 lines
668 B
JavaScript
31 lines
668 B
JavaScript
// npm i artplayer-plugin-liquid-glass
|
|
// import artplayerPluginLiquidGlass from 'artplayer-plugin-liquid-glass';
|
|
|
|
let art = new Artplayer({
|
|
container: '.artplayer-app',
|
|
url: '/assets/sample/video.mp4',
|
|
poster: '/assets/sample/poster.jpg',
|
|
autoSize: true,
|
|
pip: true,
|
|
setting: true,
|
|
fullscreen: true,
|
|
fullscreenWeb: true,
|
|
miniProgressBar: true,
|
|
flip: true,
|
|
playbackRate: true,
|
|
aspectRatio: true,
|
|
thumbnails: {
|
|
url: '/assets/sample/thumbnails.png',
|
|
number: 60,
|
|
column: 10,
|
|
scale: 0.8,
|
|
},
|
|
plugins: [
|
|
artplayerPluginLiquidGlass({
|
|
width: '75%',
|
|
'max-width': '640px',
|
|
'min-width': '320px',
|
|
}),
|
|
],
|
|
})
|