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:
commit
9a3257858c
1 changed files with 21 additions and 3 deletions
|
@ -1147,7 +1147,7 @@ export default function (options) {
|
|||
|
||||
// On iOS 12.x, for TS container max h264 level is 4.2
|
||||
if (browser.iOS && browser.iOSVersion < 13) {
|
||||
const codecProfile = {
|
||||
const codecProfileTS = {
|
||||
Type: 'Video',
|
||||
Codec: 'h264',
|
||||
Container: 'ts',
|
||||
|
@ -1156,14 +1156,32 @@ export default function (options) {
|
|||
})
|
||||
};
|
||||
|
||||
codecProfile.Conditions.push({
|
||||
codecProfileTS.Conditions.push({
|
||||
Condition: 'LessThanEqual',
|
||||
Property: 'VideoLevel',
|
||||
Value: '42',
|
||||
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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue