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; const videoEl = self.$refs.videoEl;
switch (handler.key) { switch (handler.key) {
case "f": case "f":
if (document.fullscreenElement) document.exitFullscreen(); self.ui.getControls().toggleFullScreen();
else self.ui.getControls().toggleFullScreen();
e.preventDefault(); e.preventDefault();
break; break;
case "m": case "m":