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

Update browserDeviceProfile with the new Dolby Vision types

This commit is contained in:
George Haidos 2024-03-17 21:47:29 +02:00 committed by GeorgeH005
parent 49552d0c9d
commit e4fdd3ee94

View file

@ -217,9 +217,6 @@ function supportedDolbyVisionProfilesHevc(videoTestElement) {
if (videoTestElement if (videoTestElement
.canPlayType('video/mp4; codecs="dvh1.05.09"') .canPlayType('video/mp4; codecs="dvh1.05.09"')
.replace(/no/, '')) supportedProfiles.push(5); .replace(/no/, '')) supportedProfiles.push(5);
if ( videoTestElement
.canPlayType('video/mp4; codecs="dvh1.07.09"')
.replace(/no/, '')) supportedProfiles.push(7);
if ( videoTestElement if ( videoTestElement
.canPlayType('video/mp4; codecs="dvh1.08.09"') .canPlayType('video/mp4; codecs="dvh1.08.09"')
.replace(/no/, '')) supportedProfiles.push(8); .replace(/no/, '')) supportedProfiles.push(8);
@ -953,11 +950,11 @@ export default function (options) {
if (supportsDolbyVision(options)) { if (supportsDolbyVision(options)) {
const profiles = supportedDolbyVisionProfilesHevc(videoTestElement); const profiles = supportedDolbyVisionProfilesHevc(videoTestElement);
if (profiles.includes(5) || profiles.includes(7)) { if (profiles.includes(5)) {
hevcVideoRangeTypes += '|DOVI'; hevcVideoRangeTypes += '|DOVI';
} }
if (profiles.includes(8)) { if (profiles.includes(8)) {
hevcVideoRangeTypes += '|DOVIWithHDR10|DOVIWithHLG'; hevcVideoRangeTypes += '|DOVIWithHDR10|DOVIWithHLG|DOVIWithSDR';
} }
} }