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

Add DoVi fallback types as per pull #10469 on main repo

This commit is contained in:
George Haidos 2024-03-14 01:52:44 +02:00 committed by GeorgeH005
parent 7ab9b653e6
commit b4f912be46

View file

@ -1,6 +1,6 @@
import browser from './browser';
import appSettings from './settings/appSettings';
import * as userSettings from './settings/userSettings';
import browser from './browser';
function canPlayH264(videoTestElement) {
return !!(videoTestElement.canPlayType?.('video/mp4; codecs="avc1.42E01E, mp4a.40.2"').replace(/no/, ''));
@ -932,14 +932,18 @@ export default function (options) {
if (supportsHdr10(options)) {
hevcVideoRangeTypes += '|HDR10';
// Should also be able to play DoVi with HDR10 fallback
hevcVideoRangeTypes += '|DOVIWithHDR10'
vp9VideoRangeTypes += '|HDR10';
av1VideoRangeTypes += '|HDR10';
}
if (supportsHlg(options)) {
hevcVideoRangeTypes += '|HLG';
vp9VideoRangeTypes += '|HLG';
av1VideoRangeTypes += '|HLG';
hevcVideoRangeTypes += "|HLG";
// Should also be able to play DoVi with HLG fallback
hevcVideoRangeTypes += "|DOVIWithHLG";
vp9VideoRangeTypes += "|HLG";
av1VideoRangeTypes += "|HLG";
}
if (supportsDolbyVision(options) && canPlayDolbyVisionHevc(videoTestElement)) {
@ -1250,4 +1254,3 @@ export default function (options) {
return profile;
}