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

Merge pull request #5983 from nyanmisaka/fix-dovi-level-test

Fix overly strict dovi level testing
This commit is contained in:
Bill Thornton 2024-09-03 10:07:08 -04:00 committed by GitHub
commit 2ebf0c9fe4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -242,16 +242,16 @@ function supportedDolbyVisionProfilesHevc(videoTestElement) {
if (browser.xboxOne) return [5, 8]; if (browser.xboxOne) return [5, 8];
const supportedProfiles = []; const supportedProfiles = [];
// Profiles 5/8 4k@60fps // Profiles 5/8 4k@24fps
if (videoTestElement.canPlayType) { if (videoTestElement.canPlayType) {
if (videoTestElement if (videoTestElement
.canPlayType('video/mp4; codecs="dvh1.05.09"') .canPlayType('video/mp4; codecs="dvh1.05.06"')
.replace(/no/, '')) { .replace(/no/, '')) {
supportedProfiles.push(5); supportedProfiles.push(5);
} }
if ( if (
videoTestElement videoTestElement
.canPlayType('video/mp4; codecs="dvh1.08.09"') .canPlayType('video/mp4; codecs="dvh1.08.06"')
.replace(/no/, '') .replace(/no/, '')
// LG TVs from at least 2020 onwards should support profile 8, but they don't report it. // LG TVs from at least 2020 onwards should support profile 8, but they don't report it.
|| (browser.web0sVersion >= 4) || (browser.web0sVersion >= 4)