diff --git a/docs/assets/example/vast.js b/docs/assets/example/vast.js new file mode 100644 index 000000000..a523125f1 --- /dev/null +++ b/docs/assets/example/vast.js @@ -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', + }), + ], +}); \ No newline at end of file diff --git a/docs/assets/js/common.js b/docs/assets/js/common.js index 73d267637..cd62eecdf 100644 --- a/docs/assets/js/common.js +++ b/docs/assets/js/common.js @@ -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' ), }); diff --git a/docs/index.html b/docs/index.html index 273d24507..fd520c6a1 100644 --- a/docs/index.html +++ b/docs/index.html @@ -61,6 +61,10 @@ artplayer-plugin-chromecast +
  • + artplayer-plugin-vast +