diff --git a/docs/assets/js/mobile.js b/docs/assets/js/mobile.js index fac8b14e3..b762fa57c 100644 --- a/docs/assets/js/mobile.js +++ b/docs/assets/js/mobile.js @@ -19,7 +19,7 @@ var art = new Artplayer({ subtitle: { url: url + '/subtitle/one-more-time-one-more-chance.srt', style: { - color: '#03A9F4', + color: '#fff', fontSize: '14px', }, }, @@ -41,6 +41,26 @@ var art = new Artplayer({ loading: '', state: '', }, + plugins: [ + artplayerPluginDanmuku({ + danmuku: url + '/danmuku/one-more-time-one-more-chance.xml', + speed: 5, + maxlength: 100, + margin: [10, 50], + opacity: 1, + fontSize: 14, + synchronousPlayback: false, + }), + ], + controls: [ + { + position: 'right', + html: '弹幕', + click: function () { + art.plugins.artplayerPluginDanmuku.hide(); + }, + }, + ], whitelist: ['*'], }); diff --git a/docs/mobile.html b/docs/mobile.html index 73b8da508..090e6ce73 100644 --- a/docs/mobile.html +++ b/docs/mobile.html @@ -21,6 +21,7 @@ +