refactor: Update VAST plugin in Artplayer

This commit is contained in:
Harvey Zack committed 2024-08-23 22:42:04 +08:00
1 parent d2de5297d6
commit f9192ff852
18 files changed
+996 -64

No files matched your search

+3 -3
View File
@@ -1,5 +1,5 @@
// npm i artplayer-plugin-vast
// import ArtplayerPluginVast from 'artplayer-plugin-vast';
// import artplayerPluginVast from 'artplayer-plugin-vast';
var art = new Artplayer({
container: '.artplayer-app',
@@ -7,8 +7,8 @@ var art = new Artplayer({
fullscreen: true,
fullscreenWeb: true,
plugins: [
ArtplayerPluginVast({
url: '/assets/sample/vast.xml',
artplayerPluginVast(({ playUrl }) => {
//
}),
],
});