添加画质控制器

This commit is contained in:
Harvey Zack committed 2018-11-01 14:41:32 +08:00
1 parent c118c407fc
commit a4876e6c73
9 files changed
+129 -12

No files matched your search

+9 -1
View File
@@ -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() {