diff --git a/source/utils/deviceCapabilities.brs b/source/utils/deviceCapabilities.brs index 0911ad9a0..e554a6799 100644 --- a/source/utils/deviceCapabilities.brs +++ b/source/utils/deviceCapabilities.brs @@ -379,7 +379,8 @@ function getDeviceProfile() as object "IsRequired": true } ' - ' add mp3 to TranscodingProfile for music + ' add mp3 directly to transcoding profile. + ' for music i think? deviceProfile.TranscodingProfiles.push({ "Container": "mp3", "Type": "Audio", @@ -397,6 +398,30 @@ function getDeviceProfile() as object "MaxAudioChannels": maxAudioChannels }) + ' setup container arrays + tsArray = { + "Container": "ts", + "Context": "Streaming", + "Protocol": "hls", + "Type": "Video", + "AudioCodec": tsAudioCodecs, + "VideoCodec": tsVideoCodecs, + "MaxAudioChannels": maxAudioChannels, + "MinSegments": 1, + "BreakOnNonKeyFrames": false + } + mp4Array = { + "Container": "mp4", + "Context": "Streaming", + "Protocol": "hls", + "Type": "Video", + "AudioCodec": mp4AudioCodecs, + "VideoCodec": mp4VideoCodecs, + "MaxAudioChannels": maxAudioChannels, + "MinSegments": 1, + "BreakOnNonKeyFrames": false + } + ' set preferred audio codec for transcoding if isValid(surroundSoundCodec) ' use preferred surround sound codec @@ -450,29 +475,6 @@ function getDeviceProfile() as object }) end if - tsArray = { - "Container": "ts", - "Context": "Streaming", - "Protocol": "hls", - "Type": "Video", - "AudioCodec": tsAudioCodecs, - "VideoCodec": tsVideoCodecs, - "MaxAudioChannels": maxAudioChannels, - "MinSegments": 1, - "BreakOnNonKeyFrames": false - } - mp4Array = { - "Container": "mp4", - "Context": "Streaming", - "Protocol": "hls", - "Type": "Video", - "AudioCodec": mp4AudioCodecs, - "VideoCodec": mp4VideoCodecs, - "MaxAudioChannels": maxAudioChannels, - "MinSegments": 1, - "BreakOnNonKeyFrames": false - } - ' apply max res to transcoding profile if maxResSetting <> "off" tsArray.Conditions = [maxVideoHeightArray, maxVideoWidthArray]