diff --git a/docs/assets/example/danmu.js b/docs/assets/example/danmu.js new file mode 100644 index 000000000..db55e726f --- /dev/null +++ b/docs/assets/example/danmu.js @@ -0,0 +1,7 @@ +var url = 'https://zhw2590582.github.io/assets-cdn'; +var art = new Artplayer({ + container: '.artplayer-app', + url: url + '/video/you-name.mp4', + autoSize: true, + plugins: [artplayerPluginDanmu], +}); diff --git a/docs/index.html b/docs/index.html index 7741b6ac6..476c345eb 100644 --- a/docs/index.html +++ b/docs/index.html @@ -28,6 +28,7 @@
  • Plugins
  • artplayer-plugin-gif
  • artplayer-plugin-backlight
  • +
  • artplayer-plugin-danmu
  • artplayer-plugin-playlist