Merge pull request #6029 from nyanmisaka/dovi-profile10

Add support for DoVi Profile 10
This commit is contained in:
Bill Thornton
2024-09-20 13:45:52 -04:00
committed by GitHub
+9
View File
@@ -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;
@@ -1103,6 +1108,10 @@ export default function (options) {
if (profiles.includes(8)) {
hevcVideoRangeTypes += '|DOVIWithHDR10|DOVIWithHLG|DOVIWithSDR';
}
if (supportedDolbyVisionProfileAv1(videoTestElement)) {
av1VideoRangeTypes += '|DOVI|DOVIWithHDR10|DOVIWithHLG|DOVIWithSDR';
}
}
const h264CodecProfileConditions = [