1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge pull request #5322 from jellyfin/fmp4maxlevel

This commit is contained in:
Bill Thornton 2024-03-31 23:35:53 -04:00 committed by GitHub
commit 9a3257858c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1147,7 +1147,7 @@ export default function (options) {
// On iOS 12.x, for TS container max h264 level is 4.2 // On iOS 12.x, for TS container max h264 level is 4.2
if (browser.iOS && browser.iOSVersion < 13) { if (browser.iOS && browser.iOSVersion < 13) {
const codecProfile = { const codecProfileTS = {
Type: 'Video', Type: 'Video',
Codec: 'h264', Codec: 'h264',
Container: 'ts', Container: 'ts',
@ -1156,14 +1156,32 @@ export default function (options) {
}) })
}; };
codecProfile.Conditions.push({ codecProfileTS.Conditions.push({
Condition: 'LessThanEqual', Condition: 'LessThanEqual',
Property: 'VideoLevel', Property: 'VideoLevel',
Value: '42', Value: '42',
IsRequired: false IsRequired: false
}); });
profile.CodecProfiles.push(codecProfile); profile.CodecProfiles.push(codecProfileTS);
const codecProfileMp4 = {
Type: 'Video',
Codec: 'h264',
Container: 'mp4',
Conditions: h264CodecProfileConditions.filter((condition) => {
return condition.Property !== 'VideoLevel';
})
};
codecProfileMp4.Conditions.push({
Condition: 'LessThanEqual',
Property: 'VideoLevel',
Value: '42',
IsRequired: false
});
profile.CodecProfiles.push(codecProfileMp4);
} }
profile.CodecProfiles.push({ profile.CodecProfiles.push({