From 229accf2182e1969b13fcc9178cd2d730f8ce57b Mon Sep 17 00:00:00 2001 From: Alejandro Nieto Date: Thu, 27 Aug 2026 19:02:16 +0200 Subject: [PATCH] Remove custom device profile for web player (#2139) --- app/src/main/assets/native/nativeshell.js | 47 +---------------------- 1 file changed, 1 insertion(+), 46 deletions(-) diff --git a/app/src/main/assets/native/nativeshell.js b/app/src/main/assets/native/nativeshell.js index 47d55537..30f77ccc 100644 --- a/app/src/main/assets/native/nativeshell.js +++ b/app/src/main/assets/native/nativeshell.js @@ -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; },