Delay late-arriving video into pacing instead of dropping - #31
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (17)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. WalkthroughThe change adds bounded standing video delay based on packet arrival margins. It records receive timestamps, adjusts queued and future due times, resets delay across connections, and exposes ChangesStanding video delay
Priority: ➖ Normal Estimated code review effort: 4 (Complex) | ~45 minutes Severity of issue fixed: Medium Sequence Diagram(s)sequenceDiagram
participant Receiver
participant VideoThread
participant VideoDelay
participant PacingQueue
participant StatsSnapshot
Receiver->>VideoThread: deliver frame with received_ns
VideoThread->>VideoDelay: evaluate arrival margin
VideoDelay-->>VideoThread: return DelayRaise when required
VideoThread->>PacingQueue: shift queued due times
VideoThread->>StatsSnapshot: publish video_delay_ns
StatsSnapshot-->>VideoThread: expose video_delay_ms
Merge Risk: ⚪ Minimal · up to This change adds a bounded standing delay to compensate for late-arriving video instead of dropping or judder-causing frames, and threads the new delay value through pacing, connection reset/handover logic, and statistics reporting. Review and direct verification found the reset and statistics-mirroring logic correctly clears stale values across connection transitions, and the core delay-raising and windowing logic is well tested. No merge-blocking issues were found. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. A rabbit measures frames at night, Comment |
…pping or judder
Summary by CodeRabbit
New Features
video_delay_msstatistic and delay details to receiver logs.Documentation