From 0843f9c332d3c1ca95422ce95fdb534d06eff329 Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Mon, 6 Jun 2022 05:55:01 +0100 Subject: [PATCH] Disable AV1 by default. --- src/components/PreferencesPage.vue | 4 ++-- src/components/VideoPlayer.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/PreferencesPage.vue b/src/components/PreferencesPage.vue index 57d0d0c3..a294a88a 100644 --- a/src/components/PreferencesPage.vue +++ b/src/components/PreferencesPage.vue @@ -270,7 +270,7 @@ export default { { code: "zh_Hant", name: "繁體中文" }, { code: "zh_Hans", name: "简体中文" }, ], - enabledCodecs: ["av1", "vp9", "avc"], + enabledCodecs: ["vp9", "avc"], disableLBRY: false, proxyLBRY: false, }; @@ -356,7 +356,7 @@ export default { this.minimizeDescription = this.getPreferenceBoolean("minimizeDescription", false); this.watchHistory = this.getPreferenceBoolean("watchHistory", false); this.selectedLanguage = this.getPreferenceString("hl", this.defaultLangage); - this.enabledCodecs = this.getPreferenceString("enabledCodecs", "av1,vp9,avc").split(","); + this.enabledCodecs = this.getPreferenceString("enabledCodecs", "vp9,avc").split(","); this.disableLBRY = this.getPreferenceBoolean("disableLBRY", false); this.proxyLBRY = this.getPreferenceBoolean("proxyLBRY", false); if (this.selectedLanguage != "en") { diff --git a/src/components/VideoPlayer.vue b/src/components/VideoPlayer.vue index c5cdead4..0ecca342 100644 --- a/src/components/VideoPlayer.vue +++ b/src/components/VideoPlayer.vue @@ -55,7 +55,7 @@ export default { }, preferredVideoCodecs: _this => { var preferredVideoCodecs = []; - const enabledCodecs = _this.getPreferenceString("enabledCodecs", "av1,vp9,avc").split(","); + const enabledCodecs = _this.getPreferenceString("enabledCodecs", "vp9,avc").split(","); if ( _this.$refs.videoEl.canPlayType('video/mp4; codecs="av01.0.08M.08"') !== "" &&