From f27c5e206ab74c55711ceda5d5aaa3263d4ebd80 Mon Sep 17 00:00:00 2001 From: Neil Burrows Date: Tue, 12 Oct 2021 08:13:25 +0100 Subject: [PATCH 1/2] Add Max Audio Channel condition to supported codecs --- source/utils/deviceCapabilities.brs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/source/utils/deviceCapabilities.brs b/source/utils/deviceCapabilities.brs index 055a55d3..7bdd5552 100644 --- a/source/utils/deviceCapabilities.brs +++ b/source/utils/deviceCapabilities.brs @@ -38,12 +38,13 @@ function getDeviceProfile() as object tsAudioCodecs = "aac" end if + DirectPlayProfile = GetDirectPlayProfiles() return { "MaxStreamingBitrate": 120000000, "MaxStaticBitrate": 100000000, "MusicStreamingTranscodingBitrate": 192000, - "DirectPlayProfiles": GetDirectPlayProfiles(), + "DirectPlayProfiles": DirectPlayProfile, "TranscodingProfiles": [ { "Container": "aac", @@ -111,6 +112,18 @@ function getDeviceProfile() as object } ] }, + { + "Type": "VideoAudio", + "Codec": DirectPlayProfile[1].AudioCodec, ' Use supported MKV Audio list + "Conditions": [ + { + "Condition": "LessThanEqual", + "Property": "AudioChannels", + "Value": StrI(maxAudioChannels) ' Currently Jellyfin server expects this as a string + "IsRequired": false + } + ] + }, { "Type": "Video", "Codec": "h264", From f86bc56673110fb3c4fecb586f88c18e64218468 Mon Sep 17 00:00:00 2001 From: Neil Burrows Date: Tue, 12 Oct 2021 08:21:31 +0100 Subject: [PATCH 2/2] formatting --- source/utils/deviceCapabilities.brs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/utils/deviceCapabilities.brs b/source/utils/deviceCapabilities.brs index 7bdd5552..88964aa6 100644 --- a/source/utils/deviceCapabilities.brs +++ b/source/utils/deviceCapabilities.brs @@ -114,7 +114,7 @@ function getDeviceProfile() as object }, { "Type": "VideoAudio", - "Codec": DirectPlayProfile[1].AudioCodec, ' Use supported MKV Audio list + "Codec": DirectPlayProfile[1].AudioCodec, ' Use supported MKV Audio list "Conditions": [ { "Condition": "LessThanEqual",