diff --git a/src/renderer/components/ft-video-player/ft-video-player.js b/src/renderer/components/ft-video-player/ft-video-player.js index 32003cddc15e..3d87beda7ad7 100644 --- a/src/renderer/components/ft-video-player/ft-video-player.js +++ b/src/renderer/components/ft-video-player/ft-video-player.js @@ -193,6 +193,10 @@ export default Vue.extend({ return this.$store.getters.getDisplayVideoPlayButton }, + enterFullscreenOnDisplayRotate: function() { + return this.$store.getters.getEnterFullscreenOnDisplayRotate + }, + sponsorSkips: function () { const sponsorCats = ['sponsor', 'selfpromo', @@ -363,8 +367,8 @@ export default Vue.extend({ }) this.player.mobileUi({ fullscreen: { - enterOnRotate: true, - exitOnRotate: true, + enterOnRotate: this.enterFullscreenOnDisplayRotate, + exitOnRotate: this.enterFullscreenOnDisplayRotate, lockOnRotate: false }, // Without this flag, the mobile UI will only activate diff --git a/src/renderer/components/player-settings/player-settings.js b/src/renderer/components/player-settings/player-settings.js index 66c75e422a97..0d7379e15279 100644 --- a/src/renderer/components/player-settings/player-settings.js +++ b/src/renderer/components/player-settings/player-settings.js @@ -132,6 +132,10 @@ export default Vue.extend({ return this.$store.getters.getDisplayVideoPlayButton }, + enterFullscreenOnDisplayRotate: function () { + return this.$store.getters.getEnterFullscreenOnDisplayRotate + }, + maxVideoPlaybackRate: function () { return parseInt(this.$store.getters.getMaxVideoPlaybackRate) }, @@ -270,6 +274,7 @@ export default Vue.extend({ 'updateVideoVolumeMouseScroll', 'updateVideoPlaybackRateMouseScroll', 'updateDisplayVideoPlayButton', + 'updateEnterFullscreenOnDisplayRotate', 'updateMaxVideoPlaybackRate', 'updateVideoPlaybackRateInterval', 'updateEnableScreenshot', diff --git a/src/renderer/components/player-settings/player-settings.vue b/src/renderer/components/player-settings/player-settings.vue index 95fe1d5b8824..bf4b3a5ce3b0 100644 --- a/src/renderer/components/player-settings/player-settings.vue +++ b/src/renderer/components/player-settings/player-settings.vue @@ -51,6 +51,12 @@ :default-value="displayVideoPlayButton" @change="updateDisplayVideoPlayButton" /> +