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 { return {
"VideoCodec": "h264", "VideoCodec": "h264",
"AudioCodec": audioCodec, "AudioCodec": audioCodec,
"MaxAudioChannels": audioChannels, "MaxAudioChannels": StrI(audioChannels), ' Currently Jellyfin server expects this as a string
"MediaSourceId": meta.id, "MediaSourceId": meta.id,
"SegmentContainer": "ts", "SegmentContainer": "ts",
"MinSegments": 1, "MinSegments": 1,

View File

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