diff --git a/src/components/deviceprofileBuilder.ts b/src/components/deviceprofileBuilder.ts index c535114..e023ab6 100644 --- a/src/components/deviceprofileBuilder.ts +++ b/src/components/deviceprofileBuilder.ts @@ -291,7 +291,7 @@ function getTranscodingProfiles(): TranscodingProfile[] { const hlsAudioCodecs = getSupportedHLSAudioCodecs(); const audioChannels: number = hasSurroundSupport() ? 6 : 2; - if (profileOptions.enableHls !== false) { + if (profileOptions.enableHls) { TranscodingProfiles.push({ AudioCodec: hlsAudioCodecs.join(','), BreakOnNonKeyFrames: false, @@ -328,12 +328,12 @@ function getTranscodingProfiles(): TranscodingProfile[] { if ( hlsVideoCodecs.length && hlsAudioCodecs.length && - profileOptions.enableHls !== false + profileOptions.enableHls ) { TranscodingProfiles.push({ AudioCodec: hlsAudioCodecs.join(','), BreakOnNonKeyFrames: false, - Container: 'ts', + Container: 'mp4', Context: EncodingContext.Streaming, MaxAudioChannels: audioChannels.toString(), MinSegments: 1,