diff --git a/src/scripts/browserDeviceProfile.js b/src/scripts/browserDeviceProfile.js index 7f9e236022..3e8914a8c4 100644 --- a/src/scripts/browserDeviceProfile.js +++ b/src/scripts/browserDeviceProfile.js @@ -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; } -