Browse Source

wait for one segment by default (#617)

pull/618/head
Jason Dove 5 years ago committed by GitHub
parent
commit
89811a1203
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ErsatzTV.Application/FFmpegProfiles/Queries/GetFFmpegSettingsHandler.cs
  2. 2
      ErsatzTV.Application/Streaming/Commands/StartFFmpegSessionHandler.cs

2
ErsatzTV.Application/FFmpegProfiles/Queries/GetFFmpegSettingsHandler.cs

@ -46,7 +46,7 @@ namespace ErsatzTV.Application.FFmpegProfiles.Queries @@ -46,7 +46,7 @@ namespace ErsatzTV.Application.FFmpegProfiles.Queries
PreferredLanguageCode = await preferredLanguageCode.IfNoneAsync("eng"),
HlsSegmenterIdleTimeout = await hlsSegmenterIdleTimeout.IfNoneAsync(60),
WorkAheadSegmenterLimit = await workAheadSegmenterLimit.IfNoneAsync(1),
InitialSegmentCount = await initialSegmentCount.IfNoneAsync(4)
InitialSegmentCount = await initialSegmentCount.IfNoneAsync(1)
};
foreach (int watermarkId in watermark)

2
ErsatzTV.Application/Streaming/Commands/StartFFmpegSessionHandler.cs

@ -71,7 +71,7 @@ namespace ErsatzTV.Application.Streaming.Commands @@ -71,7 +71,7 @@ namespace ErsatzTV.Application.Streaming.Commands
IConfigElementRepository repo = scope.ServiceProvider.GetRequiredService<IConfigElementRepository>();
int initialSegmentCount = await repo.GetValue<int>(ConfigElementKey.FFmpegInitialSegmentCount)
.Map(maybeCount => maybeCount.Match(identity, () => 4));
.Map(maybeCount => maybeCount.Match(identity, () => 1));
await WaitForPlaylistSegments(playlistFileName, initialSegmentCount, worker);

Loading…
Cancel
Save