Merge pull request #7392 from thornbill/backport-6376

This commit is contained in:
Bill Thornton
2025-12-05 10:13:29 -05:00
committed by GitHub

View File

@@ -1146,6 +1146,13 @@ export default function (options) {
hevcProfiles = 'main|main 10';
}
// hevc main10 level 6.2
if (videoTestElement.canPlayType('video/mp4; codecs="hvc1.2.4.L186"').replace(/no/, '')
|| videoTestElement.canPlayType('video/mp4; codecs="hev1.2.4.L186"').replace(/no/, '')) {
maxHevcLevel = 186;
hevcProfiles = 'main|main 10';
}
let maxAv1Level = 15; // level 5.3
const av1Profiles = 'main'; // av1 main covers 4:2:0 8 & 10 bits