mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-12 15:26:16 -08:00
添加画质控制器
This commit is contained in:
1 parent
c118c407fc
commit
a4876e6c73
9 files changed
+129
-12
No files matched your search
+9
-1
@@ -26,7 +26,7 @@ export default class Player {
|
||||
}
|
||||
|
||||
eventBind() {
|
||||
const { option, events: { proxy }, refs: { $player, $video }, i18n, notice } = this.art;
|
||||
const { option, events: { proxy, hover }, refs: { $player, $video }, i18n, notice } = this.art;
|
||||
|
||||
config.video.events.forEach(eventName => {
|
||||
proxy($video, eventName, event => {
|
||||
@@ -105,6 +105,14 @@ export default class Player {
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
hover($player, () => {
|
||||
$player.classList.add('artplayer-hover');
|
||||
this.art.emit('hoverenter');
|
||||
}, () => {
|
||||
$player.classList.remove('artplayer-hover');
|
||||
this.art.emit('hoverleave');
|
||||
});
|
||||
}
|
||||
|
||||
play() {
|
||||
|
||||
Reference in new issue
Block a user