From c1161c7c5acc3ee4031493a76dc004fd178845fb Mon Sep 17 00:00:00 2001 From: imtsuki Date: Fri, 13 Dec 2024 20:37:00 +0800 Subject: [PATCH] Add hevc level 6.2 check Signed-off-by: imtsuki --- src/scripts/browserDeviceProfile.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/scripts/browserDeviceProfile.js b/src/scripts/browserDeviceProfile.js index 755e6e70e7..f95fd1ac9d 100644 --- a/src/scripts/browserDeviceProfile.js +++ b/src/scripts/browserDeviceProfile.js @@ -1079,6 +1079,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