mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 22:01:20 -08:00
chore: Update window object property name to ArtplayerPluginVast
This commit is contained in:
1 parent
fac7d15726
commit
0f7a3ce02c
7 files changed
+34
-14
No files matched your search
@@ -0,0 +1,14 @@
|
||||
// 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',
|
||||
}),
|
||||
],
|
||||
});
|
||||
@@ -78,10 +78,10 @@
|
||||
automaticLayout: true,
|
||||
quickSuggestions: { other: true, comments: true, strings: true },
|
||||
model: monaco.editor.createModel(
|
||||
`var art = new Artplayer({
|
||||
container: '.artplayer-app',
|
||||
url: '/assets/sample/video.mp4',
|
||||
});`,
|
||||
`var art = new Artplayer({
|
||||
container: '.artplayer-app',
|
||||
url: '/assets/sample/video.mp4',
|
||||
});`,
|
||||
$ts.checked ? 'typescript' : 'javascript'
|
||||
),
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user