mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-08 19:06:15 -08:00
fix: update window export syntax for plugin; ensure compatibility with global scope
feat: add example usage for artplayer-plugin-test in test.js
This commit is contained in:
1 parent
abbecff472
commit
e7633ed49d
2 files changed
+13
-1
No files matched your search
@@ -0,0 +1,12 @@
|
||||
// npm i artplayer-plugin-test
|
||||
// import artplayerPluginTest from 'artplayer-plugin-test';
|
||||
|
||||
var art = new Artplayer({
|
||||
container: '.artplayer-app',
|
||||
url: '/assets/sample/video.mp4',
|
||||
plugins: [
|
||||
artplayerPluginTest({
|
||||
//
|
||||
}),
|
||||
],
|
||||
});
|
||||
@@ -27,5 +27,5 @@ if (typeof document !== 'undefined') {
|
||||
}
|
||||
|
||||
if (typeof window !== 'undefined') {
|
||||
window['{{export}}'] = {{export}};
|
||||
window.{{export}} = {{export}};
|
||||
}
|
||||
Reference in new issue
Block a user