From 0f7a3ce02c7f75948f9d16b6f29aaf76bf3f3386 Mon Sep 17 00:00:00 2001 From: Harvey Zack Date: Sun, 2 Jun 2024 12:37:30 +0800 Subject: [PATCH] chore: Update window object property name to ArtplayerPluginVast --- docs/assets/example/vast.js | 14 ++++++++++++++ docs/assets/js/common.js | 8 ++++---- docs/index.html | 4 ++++ .../index.js | 16 ++++++++-------- .../index.js.map | 2 +- packages/artplayer-plugin-vast/src/index.js | 2 +- .../docs/.vitepress/config.js | 2 ++ 7 files changed, 34 insertions(+), 14 deletions(-) create mode 100644 docs/assets/example/vast.js rename docs/uncompiled/{artplayer-plugin-test => artplayer-plugin-vast}/index.js (91%) rename docs/uncompiled/{artplayer-plugin-test => artplayer-plugin-vast}/index.js.map (83%) 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 +