mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-21 21:17:26 +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;
|
||||
|
||||
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":
|
||||
|
Loading…
Reference in New Issue
Block a user