mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-18 19:01:20 -08:00
添加灯光模式
This commit is contained in:
1 parent
4867d8e25a
commit
3379e6091c
18 files changed
+170
-54
No files matched your search
@@ -35,6 +35,7 @@ export default class Template {
|
||||
desktop() {
|
||||
const { theme, backdrop } = this.art.option;
|
||||
this.$container.innerHTML = `
|
||||
<div class="art-undercover"></div>
|
||||
<div class="art-video-player art-subtitle-show art-layer-show" style="--theme: ${theme}">
|
||||
<video class="art-video">
|
||||
<track default kind="metadata"></track>
|
||||
@@ -99,6 +100,8 @@ export default class Template {
|
||||
<div class="art-contextmenus"></div>
|
||||
</div>
|
||||
`;
|
||||
|
||||
this.$undercover = this.query('.art-undercover');
|
||||
this.$player = this.query('.art-video-player');
|
||||
this.$video = this.query('.art-video');
|
||||
this.$track = this.query('.art-video track');
|
||||
|
||||
Reference in new issue
Block a user