Fix errors when full-screen button is pressed.

This commit is contained in:
FireMasterK 2021-08-30 20:06:22 +05:30
parent c0596420d1
commit 8cca38838b
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD

View File

@ -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":