Fix fullscreen hotkey regression.

This commit is contained in:
FireMasterK 2021-10-08 17:38:01 +01:00
parent 68341d6441
commit e8f8930932
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD

View file

@ -33,7 +33,6 @@
.shaka-video-container:-webkit-full-screen { .shaka-video-container:-webkit-full-screen {
max-height: none !important; max-height: none !important;
} }
</style> </style>
<script> <script>
@ -200,7 +199,7 @@ export default {
videoEl.addEventListener("ratechange", () => { videoEl.addEventListener("ratechange", () => {
this.setPreference("rate", videoEl.playbackRate); this.setPreference("rate", videoEl.playbackRate);
}) });
videoEl.addEventListener("ended", () => { videoEl.addEventListener("ended", () => {
if (!this.selectedAutoLoop && this.selectedAutoPlay && this.video.relatedStreams.length > 0) { if (!this.selectedAutoLoop && this.selectedAutoPlay && this.video.relatedStreams.length > 0) {
@ -315,7 +314,7 @@ export default {
const videoEl = self.$refs.videoEl; const videoEl = self.$refs.videoEl;
switch (handler.key) { switch (handler.key) {
case "f": case "f":
self.ui.getControls().toggleFullScreen(); self.$ui.getControls().toggleFullScreen();
e.preventDefault(); e.preventDefault();
break; break;
case "m": case "m":