feat(streaming): add backend streaming support with nginx-rtmp #1

Merged
dylan merged 31 commits from feat/rtmp-streaming into master 2026-06-20 01:33:56 +01:00
Showing only changes of commit e60b6e36b2 - Show all commits

View File

@@ -196,7 +196,7 @@ public class StreamService {
return Arrays.stream(tsFiles) return Arrays.stream(tsFiles)
.filter(f -> { .filter(f -> {
long segMs = parseTimestampMs(f); long segMs = parseTimestampMs(f);
return segMs < endMs && segMs > startMs; return segMs < endMs && (segMs + 3_000) > startMs;
}) })
.sorted(Comparator.comparingLong(this::parseTimestampMs)) .sorted(Comparator.comparingLong(this::parseTimestampMs))
.collect(Collectors.toList()); .collect(Collectors.toList());