mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-29 11:11:20 -08:00
feat: add danmuku mask plugin for ArtPlayer with initial implementation and documentation
This commit is contained in:
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 {
|
||||
//
|
||||
}
|
||||
Reference in new issue
Block a user