aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Helpers
diff options
context:
space:
mode:
authorgnattu <gnattu@users.noreply.github.com>2024-06-23 11:40:38 -0400
committerJoshua M. Boniface <joshua@boniface.me>2024-06-23 11:40:38 -0400
commita1b9f90d7dd75a48cdd3b49a706d3d7a3864bafa (patch)
tree9e16da9062d3ab14e914f171602c4d634ebfb229 /Jellyfin.Api/Helpers
parent92dcf0c13bdf3c0f77e9d5b8f7b01d3370f46eb0 (diff)
Backport pull request #12017 from jellyfin/release-10.9.z
Overwrite supported codecs for livetv Original-merge: 2b789807474ec4e7d5f8837a6503a7684fa94778 Merged-by: Bond-009 <bond.009@outlook.com> Backported-by: Joshua M. Boniface <joshua@boniface.me>
Diffstat (limited to 'Jellyfin.Api/Helpers')
-rw-r--r--Jellyfin.Api/Helpers/StreamingHelpers.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Jellyfin.Api/Helpers/StreamingHelpers.cs b/Jellyfin.Api/Helpers/StreamingHelpers.cs
index af4a9e689..535ef27c3 100644
--- a/Jellyfin.Api/Helpers/StreamingHelpers.cs
+++ b/Jellyfin.Api/Helpers/StreamingHelpers.cs
@@ -154,6 +154,11 @@ public static class StreamingHelpers
// Some channels from HDHomerun will experience A/V sync issues
streamingRequest.SegmentContainer = "ts";
streamingRequest.VideoCodec = "h264";
+ streamingRequest.AudioCodec = "aac";
+ state.SupportedVideoCodecs = ["h264"];
+ state.Request.VideoCodec = "h264";
+ state.SupportedAudioCodecs = ["aac"];
+ state.Request.AudioCodec = "aac";
}
var liveStreamInfo = await mediaSourceManager.GetLiveStreamWithDirectStreamProvider(streamingRequest.LiveStreamId, cancellationToken).ConfigureAwait(false);