mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-10 10:18:23 +00:00
Merge pull request #2028 from Bnyro/autoplay-fullscreen
Remember the fullscreen state on autoplay
This commit is contained in:
commit
6dabbcc41f
@ -557,6 +557,10 @@ export default {
|
|||||||
videoEl.playbackRate = rate;
|
videoEl.playbackRate = rate;
|
||||||
videoEl.defaultPlaybackRate = rate;
|
videoEl.defaultPlaybackRate = rate;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// expand the player to fullscreen when the fullscreen query equals true
|
||||||
|
if (this.$route.query.fullscreen === "true" && !this.$ui.getControls().isFullScreenEnabled())
|
||||||
|
this.$ui.getControls().toggleFullScreen();
|
||||||
},
|
},
|
||||||
async updateProgressDatabase(time) {
|
async updateProgressDatabase(time) {
|
||||||
// debounce
|
// debounce
|
||||||
@ -600,6 +604,8 @@ export default {
|
|||||||
searchParams.set(param, params[param]);
|
searchParams.set(param, params[param]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
// save the fullscreen state
|
||||||
|
searchParams.set("fullscreen", this.$ui.getControls().isFullScreenEnabled());
|
||||||
const paramStr = searchParams.toString();
|
const paramStr = searchParams.toString();
|
||||||
if (paramStr.length > 0) url += "&" + paramStr;
|
if (paramStr.length > 0) url += "&" + paramStr;
|
||||||
this.$router.push(url);
|
this.$router.push(url);
|
||||||
|
Loading…
Reference in New Issue
Block a user