mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Fix errors when full-screen button is pressed.
This commit is contained in:
parent
60476fead3
commit
ed8a46aec3
1 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue