From 8cca38838b6dfd3108bf036e3af931ca50c98bcf Mon Sep 17 00:00:00 2001 From: FireMasterK <20838718+FireMasterK@users.noreply.github.com> Date: Mon, 30 Aug 2021 20:06:22 +0530 Subject: [PATCH] Fix errors when full-screen button is pressed. --- src/components/Player.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Player.vue b/src/components/Player.vue index 6175bd30..d932b3e5 100644 --- a/src/components/Player.vue +++ b/src/components/Player.vue @@ -99,9 +99,9 @@ export default { var uri; - if (this.video.livestream) { + if (!this.video.livestream) { uri = this.video.hls; - } else if (this.video.audioStreams.length > 0 && !lbry && MseSupport) { + } else if (this.video.livestream || (this.video.audioStreams.length > 0 && !lbry && MseSupport)) { if (!this.video.dash) { const dash = require("@/utils/DashUtils.js").default.generate_dash_file_from_formats( streams, @@ -271,7 +271,7 @@ export default { switch (handler.key) { case "f": if (document.fullscreenElement) document.exitFullscreen(); - else self.$refs.container.requestFullscreen(); + else document.querySelector("video[data-shaka-player]").requestFullscreen(); e.preventDefault(); break; case "m":