mirror of
https://github.com/jellyfin/jellyfin-android.git
synced 2026-09-03 05:10:27 +03:00
Remove custom device profile for web player (#2139)
This commit is contained in:
@@ -100,51 +100,7 @@ window.NativeShell = {
|
||||
};
|
||||
|
||||
function getDeviceProfile(profileBuilder, item) {
|
||||
const profile = profileBuilder({
|
||||
enableMkvProgressive: false
|
||||
});
|
||||
|
||||
profile.CodecProfiles = profile.CodecProfiles.filter(function (i) {
|
||||
return i.Type === "Audio";
|
||||
});
|
||||
|
||||
profile.CodecProfiles.push({
|
||||
Type: "Video",
|
||||
Container: "avi",
|
||||
Conditions: [
|
||||
{
|
||||
Condition: "NotEquals",
|
||||
Property: "VideoCodecTag",
|
||||
Value: "xvid"
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
profile.CodecProfiles.push({
|
||||
Type: "Video",
|
||||
Codec: "h264",
|
||||
Conditions: [
|
||||
{
|
||||
Condition: "EqualsAny",
|
||||
Property: "VideoProfile",
|
||||
Value: "high|main|baseline|constrained baseline"
|
||||
},
|
||||
{
|
||||
Condition: "LessThanEqual",
|
||||
Property: "VideoLevel",
|
||||
Value: codecCaps.h264MaxLevel
|
||||
}]
|
||||
});
|
||||
|
||||
profile.TranscodingProfiles.reduce(function (profiles, p) {
|
||||
if (p.Type === "Video" && p.CopyTimestamps === true && p.VideoCodec === "h264") {
|
||||
p.AudioCodec += ",ac3";
|
||||
profiles.push(p);
|
||||
}
|
||||
return profiles;
|
||||
}, []);
|
||||
|
||||
return profile;
|
||||
return profileBuilder();
|
||||
}
|
||||
|
||||
window.NativeShell.AppHost = {
|
||||
@@ -160,7 +116,6 @@ window.NativeShell.AppHost = {
|
||||
return features.includes(command);
|
||||
},
|
||||
getDeviceProfile,
|
||||
getSyncProfile: getDeviceProfile,
|
||||
deviceName() {
|
||||
return deviceName;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user