|
|
|
@ -186,8 +186,12 @@ public class UniversalAudioController : BaseJellyfinApiController
|
|
|
|
|
var supportedHlsContainers = new[] { "ts", "mp4" };
|
|
|
|
|
|
|
|
|
|
// fallback to mpegts if device reports some weird value unsupported by hls
|
|
|
|
|
var requestedSegmentContainer = Array.Exists(supportedHlsContainers, element => element == transcodingContainer) ? transcodingContainer : "ts";
|
|
|
|
|
var segmentContainer = Array.Exists(supportedHlsContainers, element => element == mediaSource.TranscodingContainer) ? mediaSource.TranscodingContainer : requestedSegmentContainer;
|
|
|
|
|
var requestedSegmentContainer = Array.Exists(
|
|
|
|
|
supportedHlsContainers,
|
|
|
|
|
element => string.Equals(element, transcodingContainer, StringComparison.OrdinalIgnoreCase)) ? transcodingContainer : "ts";
|
|
|
|
|
var segmentContainer = Array.Exists(
|
|
|
|
|
supportedHlsContainers,
|
|
|
|
|
element => string.Equals(element, mediaSource.TranscodingContainer, StringComparison.OrdinalIgnoreCase)) ? mediaSource.TranscodingContainer : requestedSegmentContainer;
|
|
|
|
|
var dynamicHlsRequestDto = new HlsAudioRequestDto
|
|
|
|
|
{
|
|
|
|
|
Id = itemId,
|
|
|
|
|