Merge pull request #12017 from gnattu/overwrite-livetv-codec

Overwrite supported codecs for livetv
This commit is contained in:
Bond-009 2024-06-15 17:38:10 +02:00 committed by GitHub
commit 2b78980747
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);