From 7372e837ee486b09aaad9c0088aefd13562576e4 Mon Sep 17 00:00:00 2001 From: George Haidos Date: Sun, 19 May 2024 00:45:44 +0300 Subject: [PATCH] Force support DoVi profile 8 for webOS TVs that support it but report otherwise --- src/scripts/browserDeviceProfile.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/scripts/browserDeviceProfile.js b/src/scripts/browserDeviceProfile.js index cb19a4172f..9219978f8c 100644 --- a/src/scripts/browserDeviceProfile.js +++ b/src/scripts/browserDeviceProfile.js @@ -247,9 +247,13 @@ function supportedDolbyVisionProfilesHevc(videoTestElement) { .replace(/no/, '')) { supportedProfiles.push(5); } - if (videoTestElement - .canPlayType('video/mp4; codecs="dvh1.08.09"') - .replace(/no/, '')) { + if ( + videoTestElement + .canPlayType('video/mp4; codecs="dvh1.08.09"') + .replace(/no/, '') + // LG TVs from at least 2020 onwards should support profile 8, but they don't report it. + || (browser.web0sVersion >= 4) + ) { supportedProfiles.push(8); } }