feat: add danmuku mask plugin for ArtPlayer with initial implementation and documentation

This commit is contained in:
Harvey Zack committed 2024-10-07 22:41:51 +08:00
1 parent a6f0dc50e5
commit d9bdc9bdeb
10 files changed
+309

No files matched your search

@@ -0,0 +1,26 @@
import style from 'bundle-text:./style.less';
export default function artplayerPluginDanmukuMask(option) {
return (art) => {
return {
name: 'artplayerPluginDanmukuMask',
};
};
}
if (typeof document !== 'undefined') {
const id = 'artplayer-plugin-danmuku-mask';
const $style = document.getElementById(id);
if ($style) {
$style.textContent = style;
} else {
const $style = document.createElement('style');
$style.id = id;
$style.textContent = style;
document.head.appendChild($style);
}
}
if (typeof window !== 'undefined') {
window['artplayerPluginDanmukuMask'] = artplayerPluginDanmukuMask;
}
@@ -0,0 +1,3 @@
.artplayer-plugin-danmuku-mask {
//
}