Skip to content

Commit

Permalink
Merge pull request #1928 from cewert/fix-aac-main
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert authored Sep 27, 2024
2 parents e263abf + 9e5ae3a commit 8dd276d
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion source/utils/deviceCapabilities.bs
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 8dd276d

Please sign in to comment.