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:
commit
2d798e3536
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user