feat: improve recording recovery and upload workflow

This commit is contained in:
2026-08-10 11:14:34 +08:00
parent e0d3969e46
commit 19d358b312
58 changed files with 5979 additions and 586 deletions
@@ -103,6 +103,16 @@ public sealed class FfmpegFailureClassificationTests
FfmpegService.IsMeaningfulUnexpectedExitArtifact(durationSeconds, fileSizeBytes));
}
[Theory]
[InlineData(59, false)]
[InlineData(60, true)]
[InlineData(3600, true)]
public void StableRuntime_ResetsInSessionRecoveryBudget(int seconds, bool expected)
{
var now = DateTimeOffset.Parse("2026-08-04T20:00:00+08:00");
Assert.Equal(expected, FfmpegService.CanResetInSessionRetryBudget(now.AddSeconds(-seconds), now));
}
[Theory]
[InlineData("https://example.test/live.flv", "flv", true)]
[InlineData("https://example.test/live.m3u8", "hls", false)]