From 1faa075a7bccd59c728709d91786a6818d282487 Mon Sep 17 00:00:00 2001 From: Preston Date: Tue, 21 Apr 2020 22:59:09 -0400 Subject: [PATCH] Add Theatre Mode Toggle Setting and adjust video player side --- .../ft-video-player/ft-video-player.js | 12 ++++---- .../player-settings/player-settings.js | 5 ++++ .../player-settings/player-settings.vue | 20 ++++++++----- src/renderer/components/side-nav/side-nav.vue | 2 +- src/renderer/store/modules/settings.js | 30 +++++++++++++++++-- src/renderer/views/Watch/Watch.css | 2 +- src/renderer/views/Watch/Watch.js | 7 ++++- 7 files changed, 60 insertions(+), 18 deletions(-) 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 e88bb7b2..cf3c2795 100644 --- a/src/renderer/components/ft-video-player/ft-video-player.js +++ b/src/renderer/components/ft-video-player/ft-video-player.js @@ -96,10 +96,6 @@ export default Vue.extend({ } }, computed: { - listType: function () { - return this.$store.getters.getListType - }, - defaultPlayback: function () { return this.$store.getters.getDefaultPlayback }, @@ -112,6 +108,12 @@ export default Vue.extend({ return this.$store.getters.getAutoplayVideos } }, + watch: { + sourceList: function () { + console.log('Obtained Source list') + this.determineFormatType() + } + }, mounted: function () { this.id = this._uid @@ -199,7 +201,7 @@ export default Vue.extend({ this.useHls = false this.activeSourceList = this.dashSrc - setTimeout(this.initializePlayer, 1000) + setTimeout(this.initializePlayer, 100) }, enableLegacyFormat: function () { diff --git a/src/renderer/components/player-settings/player-settings.js b/src/renderer/components/player-settings/player-settings.js index c6a98422..4a3b16e4 100644 --- a/src/renderer/components/player-settings/player-settings.js +++ b/src/renderer/components/player-settings/player-settings.js @@ -97,6 +97,10 @@ export default Vue.extend({ defaultQuality: function () { return this.$store.getters.getDefaultQuality + }, + + defaultTheatreMode: function () { + return this.$store.getters.getDefaultTheatreMode } }, methods: { @@ -112,6 +116,7 @@ export default Vue.extend({ 'updateEnableSubtitles', 'updateForceLocalBackendForLegacy', 'updateProxyVideos', + 'updateDefaultTheatreMode', 'updateDefaultVolume', 'updateDefaultPlayback', 'updateDefaultVideoFormat', diff --git a/src/renderer/components/player-settings/player-settings.vue b/src/renderer/components/player-settings/player-settings.vue index d43113f4..cab45f7a 100644 --- a/src/renderer/components/player-settings/player-settings.vue +++ b/src/renderer/components/player-settings/player-settings.vue @@ -10,25 +10,25 @@
@@ -36,22 +36,28 @@
+
diff --git a/src/renderer/components/side-nav/side-nav.vue b/src/renderer/components/side-nav/side-nav.vue index 41974302..30435826 100644 --- a/src/renderer/components/side-nav/side-nav.vue +++ b/src/renderer/components/side-nav/side-nav.vue @@ -49,7 +49,7 @@ @click="navigate('userplaylists')" >