diff --git a/src/scripts/browserDeviceProfile.js b/src/scripts/browserDeviceProfile.js index e41289acb5..c3f798dda4 100644 --- a/src/scripts/browserDeviceProfile.js +++ b/src/scripts/browserDeviceProfile.js @@ -262,6 +262,11 @@ function supportedDolbyVisionProfilesHevc(videoTestElement) { return supportedProfiles; } +function supportedDolbyVisionProfileAv1(videoTestElement) { + // Profile 10 4k@24fps + return videoTestElement.canPlayType?.('video/mp4; codecs="dav1.10.06"').replace(/no/, ''); +} + function getDirectPlayProfileForVideoContainer(container, videoAudioCodecs, videoTestElement, options) { let supported = false; let profileContainer = container; @@ -1067,6 +1072,10 @@ export default function (options) { } } + if (supportsDolbyVision(options) && supportedDolbyVisionProfileAv1(videoTestElement)) { + av1VideoRangeTypes += '|DOVI|DOVIWithHDR10|DOVIWithHLG|DOVIWithSDR'; + } + const h264CodecProfileConditions = [ { Condition: 'NotEquals',