fix fullscreenEnabled bug

This commit is contained in:
zhw2590582 committed 2019-04-21 21:16:24 +08:00
1 parent c27d245003
commit 7bed66fdaf
3 files changed
+7 -12

No files matched your search

+3 -6
View File
@@ -1628,13 +1628,10 @@
player.fullscreenWebExit();
}
$player.classList.add('artplayer-fullscreen');
screenfull.request($player);
if (player.fullscreenState) {
player.aspectRatioReset();
art.emit('fullscreen:enabled');
}
$player.classList.add('artplayer-fullscreen');
player.aspectRatioReset();
art.emit('fullscreen:enabled');
}
});
Object.defineProperty(player, 'fullscreenExit', {