From 582114e79d74eeaf8a06c347fd413cbd4584cc44 Mon Sep 17 00:00:00 2001 From: Harvey Zack Date: Thu, 25 Apr 2019 11:23:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=BC=B9=E5=B9=95=E6=8F=92?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/assets/example/danmu.js | 7 ++ docs/index.html | 1 + docs/uncompiled/artplayer-plugin-danmu.css | 2 + .../uncompiled/artplayer-plugin-danmu.css.map | 1 + docs/uncompiled/artplayer-plugin-danmu.js | 67 +++++++++++++++++++ docs/uncompiled/artplayer-plugin-danmu.js.map | 1 + docs/uncompiled/artplayer.js | 24 ++++--- docs/uncompiled/artplayer.js.map | 2 +- packages/artplayer-plugin-danmu/package.json | 1 - packages/artplayer-plugin-danmu/src/index.js | 59 ++++++++++++++-- .../artplayer-plugin-danmu/src/index.scss | 3 - packages/artplayer/src/controls/index.js | 6 +- packages/artplayer/src/layers.js | 2 +- .../artplayer/src/plugins/miniProgressBar.js | 1 + packages/artplayer/src/setting/index.js | 2 +- packages/artplayer/src/utils/component.js | 6 +- 16 files changed, 158 insertions(+), 27 deletions(-) create mode 100644 docs/assets/example/danmu.js create mode 100644 docs/uncompiled/artplayer-plugin-danmu.css create mode 100644 docs/uncompiled/artplayer-plugin-danmu.css.map create mode 100644 docs/uncompiled/artplayer-plugin-danmu.js create mode 100644 docs/uncompiled/artplayer-plugin-danmu.js.map delete mode 100644 packages/artplayer-plugin-danmu/src/index.scss 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