Force support DoVi profile 8 for webOS TVs that support it but report otherwise

This commit is contained in:
George Haidos
2024-05-19 00:45:44 +03:00
parent 21ced03987
commit 7372e837ee

View File

@@ -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);
}
}