From 67fdb317178ddfe5deaf466663295fa876a20bb9 Mon Sep 17 00:00:00 2001 From: Harvey Zack Date: Sat, 1 Jun 2024 09:10:19 +0800 Subject: [PATCH] Update danmuku.js --- docs/assets/example/danmuku.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/assets/example/danmuku.js b/docs/assets/example/danmuku.js index 3c110daa7..3eb1218de 100644 --- a/docs/assets/example/danmuku.js +++ b/docs/assets/example/danmuku.js @@ -41,4 +41,9 @@ var art = new Artplayer({ COLOR: [], // 颜色列表配置项 }), ], -}); \ No newline at end of file +}); + +// 在移动端或者播放器尺寸太小的时候,可以把弹幕发射器挂载到其他位置 +// if (Artplayer.utils.isMobile) { +// art.plugins.artplayerPluginDanmuku.mount('.danmuku-emitter') +// } \ No newline at end of file