mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 14:41:20 -08:00
update
This commit is contained in:
1 parent
38e989bc05
commit
b8153a5a29
7 files changed
+12
-12
No files matched your search
@@ -2,7 +2,7 @@ import clickInit from './clickInit';
|
||||
import hoverInit from './hoverInit';
|
||||
import mousemoveInit from './mousemoveInit';
|
||||
import resizeInit from './resizeInit';
|
||||
import doubleClickInit from './doubleClickInit';
|
||||
// import doubleClickInit from './doubleClickInit';
|
||||
|
||||
export default class Events {
|
||||
constructor(art) {
|
||||
|
||||
@@ -38,7 +38,7 @@ export default function fullscreenMix(art, player) {
|
||||
}
|
||||
$player.classList.add('artplayer-fullscreen');
|
||||
screenfull.request($player);
|
||||
player.aspectRatioRemove();
|
||||
player.aspectRatio('default');
|
||||
art.emit('fullscreen:enabled');
|
||||
},
|
||||
});
|
||||
@@ -49,7 +49,7 @@ export default function fullscreenMix(art, player) {
|
||||
player.fullscreenWebExit();
|
||||
$player.classList.remove('artplayer-fullscreen');
|
||||
screenfull.exit();
|
||||
player.aspectRatioRemove();
|
||||
player.aspectRatio('default');
|
||||
art.emit('fullscreen:exit');
|
||||
}
|
||||
},
|
||||
|
||||
@@ -13,7 +13,7 @@ export default function fullscreenWebMix(art, player) {
|
||||
player.fullscreenExit();
|
||||
}
|
||||
$player.classList.add('artplayer-web-fullscreen');
|
||||
player.aspectRatioRemove();
|
||||
player.aspectRatio('default');
|
||||
art.emit('fullscreenWeb:enabled');
|
||||
},
|
||||
});
|
||||
@@ -23,7 +23,7 @@ export default function fullscreenWebMix(art, player) {
|
||||
if (player.fullscreenWebState) {
|
||||
player.fullscreenExit();
|
||||
$player.classList.remove('artplayer-web-fullscreen');
|
||||
player.aspectRatioRemove();
|
||||
player.aspectRatio('default');
|
||||
art.emit('fullscreenWeb:exit');
|
||||
}
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user