mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-09 03:39:41 -08:00
14 lines
346 B
JavaScript
14 lines
346 B
JavaScript
// npm i artplayer-plugin-vast
|
|
// import ArtplayerPluginVast from 'artplayer-plugin-vast';
|
|
|
|
var art = new Artplayer({
|
|
container: '.artplayer-app',
|
|
url: '/assets/sample/video.mp4',
|
|
fullscreen: true,
|
|
fullscreenWeb: true,
|
|
plugins: [
|
|
ArtplayerPluginVast({
|
|
url: '/assets/sample/vast.xml',
|
|
}),
|
|
],
|
|
}); |