Skip to content

Read reception reports from sender report packets#417

Merged
mengelbart merged 1 commit into
mainfrom
fix/stats-interceptor
Jun 2, 2026
Merged

Read reception reports from sender report packets#417
mengelbart merged 1 commit into
mainfrom
fix/stats-interceptor

Conversation

@mengelbart

Copy link
Copy Markdown
Contributor

Description

Fix for reading reception reports blocks from Sender Reports.

Reference issue

Fixes #412

@mengelbart mengelbart requested a review from JoTurk June 1, 2026 09:48
@codecov

codecov Bot commented Jun 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.12%. Comparing base (5b24831) to head (40218f3).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #417      +/-   ##
==========================================
+ Coverage   80.07%   80.12%   +0.04%     
==========================================
  Files          88       88              
  Lines        4602     4603       +1     
==========================================
+ Hits         3685     3688       +3     
+ Misses        734      733       -1     
+ Partials      183      182       -1     
Flag Coverage Δ
go 80.12% <100.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mengelbart mengelbart force-pushed the fix/stats-interceptor branch from 0b7d377 to 40218f3 Compare June 1, 2026 09:51

@JoTurk JoTurk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good thank you.

Comment on lines +239 to +244
func (r *recorder) recordIncomingRR(
latestStats internalStats,
reports []rtcp.ReceptionReport,
ts time.Time,
) internalStats {
for _, report := range reports {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question should we check if the report.ssrc matches the recorder ssrc?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, we probably should. I think this is also relevant for the other RTCP packet types, though. I will create a separate issue.

@mengelbart mengelbart merged commit 9f43161 into main Jun 2, 2026
19 checks passed
@mengelbart mengelbart deleted the fix/stats-interceptor branch June 2, 2026 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Stats interceptor ignores ReportBlocks embedded in incoming SenderReports

2 participants