add option.mount

This commit is contained in:
Harvey authored and Harvey Zack committed 2022-05-05 23:27:15 +08:00
1 parent 13ffb722a1
commit 955dbc0ac2
5 files changed
+38 -3

No files matched your search

@@ -6,6 +6,10 @@ export default function artplayerPluginDanmuku(option) {
const danmuku = new Danmuku(art, option);
const control = new Control(art, danmuku);
if (option.mount) {
control.mount(option.mount);
}
return {
name: 'artplayerPluginDanmuku',
emit: danmuku.emit.bind(danmuku),