Simplify toggle full screen to shaka-player.

This commit is contained in:
FireMasterK 2021-09-22 15:03:57 +01:00
parent 172d542cd3
commit 473814f2e4
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD

View file

@ -304,8 +304,7 @@ export default {
const videoEl = self.$refs.videoEl;
switch (handler.key) {
case "f":
if (document.fullscreenElement) document.exitFullscreen();
else self.ui.getControls().toggleFullScreen();
self.ui.getControls().toggleFullScreen();
e.preventDefault();
break;
case "m":