Merge pull request #268 from neilsb/10.7-api-fix-maxaudiochannels

Ensure MaxAudioChannels is set to a string for updated API
This commit is contained in:
Anthony Lavado 2020-09-22 12:59:05 -04:00 committed by GitHub
commit 2d798e3536
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -146,7 +146,7 @@ function getTranscodeParameters(meta as object)
return {
"VideoCodec": "h264",
"AudioCodec": audioCodec,
"MaxAudioChannels": audioChannels,
"MaxAudioChannels": StrI(audioChannels), ' Currently Jellyfin server expects this as a string
"MediaSourceId": meta.id,
"SegmentContainer": "ts",
"MinSegments": 1,

View File

@ -37,7 +37,7 @@ function getDeviceProfile() as object
"AudioCodec": "aac",
"Context": "Streaming",
"Protocol": "http",
"MaxAudioChannels": maxAudioChannels
"MaxAudioChannels": StrI(maxAudioChannels) ' Currently Jellyfin server expects this as a string
},
{
"Container": "mp3",
@ -45,7 +45,7 @@ function getDeviceProfile() as object
"AudioCodec": "mp3",
"Context": "Streaming",
"Protocol": "http",
"MaxAudioChannels": 2
"MaxAudioChannels": "2"
},
{
"Container": "mp3",
@ -53,7 +53,7 @@ function getDeviceProfile() as object
"AudioCodec": "mp3",
"Context": "Static",
"Protocol": "http",
"MaxAudioChannels": 2
"MaxAudioChannels": "2"
},
{
"Container": "aac",
@ -61,7 +61,7 @@ function getDeviceProfile() as object
"AudioCodec": "aac",
"Context": "Static",
"Protocol": "http",
"MaxAudioChannels": maxAudioChannels
"MaxAudioChannels": StrI(maxAudioChannels) ' Currently Jellyfin server expects this as a string
},
{
"Container": "ts",
@ -70,7 +70,7 @@ function getDeviceProfile() as object
"VideoCodec": "h264",
"Context": "Streaming",
"Protocol": "hls",
"MaxAudioChannels": maxAudioChannels,
"MaxAudioChannels": StrI(maxAudioChannels) ' Currently Jellyfin server expects this as a string
"MinSegments": "1",
"BreakOnNonKeyFrames": true
},