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 09485def..e1b92212 100644 --- a/src/renderer/components/ft-video-player/ft-video-player.js +++ b/src/renderer/components/ft-video-player/ft-video-player.js @@ -102,7 +102,7 @@ export default Vue.extend({ }, defaultQuality: function () { - return this.$store.getters.getDefaultQuality + return parseInt(this.$store.getters.getDefaultQuality) }, defaultVideoFormat: function () { @@ -212,7 +212,7 @@ export default Vue.extend({ } }, - determineDefaultQuality: function (label) { + determineDefaultQuality: function () { if (this.useDash) { return } @@ -250,6 +250,10 @@ export default Vue.extend({ qualityNumber = 4320 } + if (this.defaultQuality === qualityNumber) { + this.selectedDefaultQuality = source.qualityLabel + } + if (index < (this.sourceList.length - 1)) { let upperQualityNumber = parseInt(reversedList[index + 1].qualityLabel.replace(/p|k/, '')) if (upperQualityNumber === 4) {