8000 Resolve undeclared SSRC using the payload type by JoeTurki · Pull Request #3066 · pion/webrtc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Resolve undeclared SSRC using the payload type #3066

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 19, 2025
Merged

Conversation

JoeTurki
Copy link
Member

Description

Introduces a fallback mechanism to handle undeclared SSRCs from multiple sections using the RTP stream's payload type. For legacy clients without MID extension support, it documents the existing behavior for handling undeclared SSRCs in single media sections.

This matches the behavior with chrome and Firefox. https://chromium.googlesource.com/external/webrtc/+/refs/heads/master/call/rtp_demuxer.cc#372

Reference issue

resolves #3065

Copy link
codecov bot commented Mar 16, 2025

Codecov Report

Attention: Patch coverage is 80.95238% with 8 lines in your changes missing coverage. Please review.

Project coverage is 78.79%. Comparing base (c523e5a) to head (5ce8e05).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
peerconnection.go 80.95% 5 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3066      +/-   ##
==========================================
+ Coverage   78.59%   78.79%   +0.19%     
==========================================
  Files          91       91              
  Lines       11313    11331      +18     
==========================================
+ Hits         8892     8928      +36     
+ Misses       1934     1919      -15     
+ Partials      487      484       -3     
Flag Coverage Δ
go 80.70% <80.95%> (+0.20%) ⬆️
wasm 63.72% <ø> (ø)

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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor
@nils-ohlmeier nils-ohlmeier left a comment

Choose a reason for hiding this comment

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

Looks good to me. Just a few suggestions for improvements.

// (urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id and urn:ietf:params:rtp-hdrext:sdes:mid)
// and even if the RTP stream contains an incorrect MID or RID.
// while this can be incorrect, this is done to maintain compatibility with older behavior.
if len(remoteDescription.parsed.MediaDescriptions) == 1 {
Copy link
Contributor

Choose a reason for hiding this comment

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

Totally optional: do we want to wrap this into a settings flag, which is on by default for now, so that we can switch the setting off in a later release to initiate deprecation of this "feature"?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, we should do this too, I will make an issue for the stuff we should deprecate and will address them separately (i have a private list). Thank you!

@JoeTurki JoeTurki force-pushed the impr/issue-3065 branch 5 times, most recently from c112428 to e252abd Compare March 19, 2025 05:30
@JoeTurki
Copy link
Member Author

Thank you so much @nils-ohlmeier for your thorough review. I truly appreciate it!

Introduces a fallback mechanism to handle undeclared SSRCs from multiple
sections using the RTP stream's payload type. For legacy clients
without MID extension support, it documents the existing behavior for
handling undeclared SSRCs in single media sections.
@JoeTurki JoeTurki merged commit 5ce8e05 into master Mar 19, 2025
18 checks passed
@JoeTurki JoeTurki deleted the impr/issue-3065 branch March 19, 2025 05:56
boks1971 added a commit to livekit/livekit that referenced this pull request Apr 5, 2025
Not great to move back, but it is affecting some clients.
Use an older version till there is better determination as to why.

It also pulls back webrtc a version which has this one interesting change
pion/webrtc#3066, but that is not critical.
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.

Handling of undeclared SSRC for multimedia streams
2 participants
0