mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-22 13:37:23 +00:00
Fix errors when full-screen button is pressed.
This commit is contained in:
parent
c0596420d1
commit
8cca38838b
@ -99,9 +99,9 @@ export default {
|
|||||||
|
|
||||||
var uri;
|
var uri;
|
||||||
|
|
||||||
if (this.video.livestream) {
|
if (!this.video.livestream) {
|
||||||
uri = this.video.hls;
|
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) {
|
if (!this.video.dash) {
|
||||||
const dash = require("@/utils/DashUtils.js").default.generate_dash_file_from_formats(
|
const dash = require("@/utils/DashUtils.js").default.generate_dash_file_from_formats(
|
||||||
streams,
|
streams,
|
||||||
@ -271,7 +271,7 @@ export default {
|
|||||||
switch (handler.key) {
|
switch (handler.key) {
|
||||||
case "f":
|
case "f":
|
||||||
if (document.fullscreenElement) document.exitFullscreen();
|
if (document.fullscreenElement) document.exitFullscreen();
|
||||||
else self.$refs.container.requestFullscreen();
|
else document.querySelector("video[data-shaka-player]").requestFullscreen();
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
break;
|
break;
|
||||||
case "m":
|
case "m":
|
||||||
|
Loading…
Reference in New Issue
Block a user