From 62b44d218ce09b77b74f36f25d1ec34c07fa67c8 Mon Sep 17 00:00:00 2001 From: gnattu Date: Sat, 10 Aug 2024 17:33:59 +0800 Subject: [PATCH] Add support for H264 High 10 Profile on Safari --- src/scripts/browserDeviceProfile.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/scripts/browserDeviceProfile.js b/src/scripts/browserDeviceProfile.js index d4b692dd6a..ba9530ea83 100644 --- a/src/scripts/browserDeviceProfile.js +++ b/src/scripts/browserDeviceProfile.js @@ -1281,6 +1281,23 @@ export default function (options) { }); } + if (browser.safari && browser.version >= 17.5) { + profile.CodecProfiles.push({ + Type: 'Video', + Container: 'hls', + SubContainer: 'mp4', + Codec: 'h264', + Conditions: [ + { + Condition: 'EqualsAny', + Property: 'VideoProfile', + Value: h264Profiles + '|high 10', + IsRequired: false + } + ] + }); + } + profile.CodecProfiles.push({ Type: 'Video', Codec: 'hevc',