From f40c196dcd90815727c4cf9ec98c0cce4ae4093d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20W=C3=BCnderich?= Date: Mon, 5 Aug 2024 04:15:25 +0200 Subject: [PATCH 1/2] Add Firefox 121+ to list of HEVC-supporting browsers Mozilla implemented support for HEVC decoding using WMF on Windows. Support for HEVC playback is being tested anyway using the canPlayHevc() function, so this should be a safe change for other operating systems (or systems without hardware HEVC decoding) as well. Fixes #5706 --- src/scripts/browserDeviceProfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/browserDeviceProfile.js b/src/scripts/browserDeviceProfile.js index 4bda92547d0..8f70131c168 100644 --- a/src/scripts/browserDeviceProfile.js +++ b/src/scripts/browserDeviceProfile.js @@ -620,7 +620,7 @@ export default function (options) { } if (canPlayHevc(videoTestElement, options) - && (browser.edgeChromium || browser.safari || browser.tizen || browser.web0s || (browser.chrome && (!browser.android || browser.versionMajor >= 105)) || (browser.opera && !browser.mobile))) { + && (browser.edgeChromium || browser.safari || browser.tizen || browser.web0s || (browser.chrome && (!browser.android || browser.versionMajor >= 105)) || (browser.opera && !browser.mobile) || (browser.firefox && browser.versionMajor >= 121))) { // Chromium used to support HEVC on Android but not via MSE hlsInFmp4VideoCodecs.push('hevc'); } From 7416f09e52cf1c6ba61aeaf086c8e6fd8dacb3bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20W=C3=BCnderich?= Date: Wed, 30 Oct 2024 17:16:50 +0100 Subject: [PATCH 2/2] Raise minimum Firefox version to 132 for HEVC playback HEVC 10bit was broken before, but the support seems to be mores table now --- src/scripts/browserDeviceProfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/browserDeviceProfile.js b/src/scripts/browserDeviceProfile.js index 8f70131c168..8ed5b4f2c31 100644 --- a/src/scripts/browserDeviceProfile.js +++ b/src/scripts/browserDeviceProfile.js @@ -620,7 +620,7 @@ export default function (options) { } if (canPlayHevc(videoTestElement, options) - && (browser.edgeChromium || browser.safari || browser.tizen || browser.web0s || (browser.chrome && (!browser.android || browser.versionMajor >= 105)) || (browser.opera && !browser.mobile) || (browser.firefox && browser.versionMajor >= 121))) { + && (browser.edgeChromium || browser.safari || browser.tizen || browser.web0s || (browser.chrome && (!browser.android || browser.versionMajor >= 105)) || (browser.opera && !browser.mobile) || (browser.firefox && browser.versionMajor >= 132))) { // Chromium used to support HEVC on Android but not via MSE hlsInFmp4VideoCodecs.push('hevc'); }