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

Reorder safari hi10p profile before normal profile

This commit is contained in:
gnattu 2024-08-26 00:12:37 +08:00
parent dec593d37e
commit 03eb42a8cf

View file

@ -1258,6 +1258,23 @@ export default function (options) {
profile.CodecProfiles.push(codecProfileMp4); profile.CodecProfiles.push(codecProfileMp4);
} }
if (browser.safari && appSettings.enableHi10p()) {
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({ profile.CodecProfiles.push({
Type: 'Video', Type: 'Video',
Codec: 'h264', Codec: 'h264',
@ -1281,23 +1298,6 @@ export default function (options) {
}); });
} }
if (browser.safari && appSettings.enableHi10p()) {
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({ profile.CodecProfiles.push({
Type: 'Video', Type: 'Video',
Codec: 'hevc', Codec: 'hevc',