mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-14 00:06:17 -08:00
refactor: Update VAST plugin in Artplayer
This commit is contained in:
1 parent
d2de5297d6
commit
f9192ff852
18 files changed
+996
-64
No files matched your search
@@ -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 }) => {
|
||||
//
|
||||
}),
|
||||
],
|
||||
});
|
||||
Reference in new issue
Block a user