mirror of
https://github.com/jellyfin/jellyfin-roku.git
synced 2024-11-23 06:09:41 +00:00
Merge pull request #1928 from cewert/fix-aac-main
This commit is contained in:
commit
8dd276d67b
@ -440,7 +440,26 @@ function getCodecProfiles() as object
|
||||
if di.CanDecodeAudio({ Codec: audioCodec, ChCnt: audioChannel }).Result
|
||||
channelSupportFound = true
|
||||
for each codecType in ["VideoAudio", "Audio"]
|
||||
if audioCodec = "opus" and codecType = "Audio"
|
||||
if audioCodec = "aac"
|
||||
codecProfiles.push({
|
||||
"Type": codecType,
|
||||
"Codec": audioCodec,
|
||||
"Conditions": [
|
||||
{
|
||||
"Condition": "NotEquals",
|
||||
"Property": "AudioProfile",
|
||||
"Value": "Main",
|
||||
"IsRequired": true
|
||||
},
|
||||
{
|
||||
"Condition": "LessThanEqual",
|
||||
"Property": "AudioChannels",
|
||||
"Value": audioChannel,
|
||||
"IsRequired": true
|
||||
}
|
||||
]
|
||||
})
|
||||
else if audioCodec = "opus" and codecType = "Audio"
|
||||
' opus audio files not supported by roku
|
||||
else
|
||||
codecProfiles.push({
|
||||
|
Loading…
Reference in New Issue
Block a user