Skip to content

Commit

Permalink
Fix fullscreen hotkey regression.
Browse files Browse the repository at this point in the history
  • Loading branch information
FireMasterK committed Oct 8, 2021
1 parent 68341d6 commit e8f8930
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/Player.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
.shaka-video-container:-webkit-full-screen {
max-height: none !important;
}
</style>

<script>
Expand Down Expand Up @@ -200,7 +199,7 @@ export default {
videoEl.addEventListener("ratechange", () => {
this.setPreference("rate", videoEl.playbackRate);
})
});
videoEl.addEventListener("ended", () => {
if (!this.selectedAutoLoop && this.selectedAutoPlay && this.video.relatedStreams.length > 0) {
Expand Down Expand Up @@ -315,7 +314,7 @@ export default {
const videoEl = self.$refs.videoEl;
switch (handler.key) {
case "f":
self.ui.getControls().toggleFullScreen();
self.$ui.getControls().toggleFullScreen();
e.preventDefault();
break;
case "m":
Expand Down

0 comments on commit e8f8930

Please sign in to comment.