1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

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
No known key found for this signature in database

View file

@ -247,9 +247,13 @@ function supportedDolbyVisionProfilesHevc(videoTestElement) {
.replace(/no/, '')) { .replace(/no/, '')) {
supportedProfiles.push(5); supportedProfiles.push(5);
} }
if (videoTestElement if (
.canPlayType('video/mp4; codecs="dvh1.08.09"') videoTestElement
.replace(/no/, '')) { .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); supportedProfiles.push(8);
} }
} }