Skip to content
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

Match header extensions to all media sections in offer #2444

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

ellenfkh
Copy link

Description

We noticed that once pion has negotiated headers and codecs for a given Kind, when a subsequent offer SDP adds a media section for that same Kind with different header extensions, the generated answer uses the original headers for all media sections.

This doesn't happen in Chrome, which never seems to send mixed headers like this. Firefox does, though.

We ran into this when sending an offer in which the first video media section had simulcast disabled, and thus didn't set this attribute

a=extmap:8/sendonly urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id

but the second video media section had simulcast enabled, so included that header.

The resulting answer didn't include that header in either media section, but the second media section did correctly have these attributes

a=rid:f recv
a=rid:h recv
a=rid:q recv
a=simulcast:recv f;h;q

Resulting in this error

Incoming unhandled RTP ssrc(3870936274), OnTrack will not be fired. stream id RTP Extensions required for Simulcast

This patch fixes our manual test case, but I suspect there are more places in the code where this assumption is being made. I'm also not sure whether Plan B vs Unified expects different behavior in this case.

Reference issue

Fixes #...

Copy link
Contributor

@adriancable adriancable left a comment

Choose a reason for hiding this comment

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

This looks good to me. If one other person can quickly eyeball this (@Sean-Der / @davidzhao ?) then I am happy to merge it. @ellenfkh - can you kindly squash the commits and make sure the new commit message passes the lint rules (begins with a capital letter, no more than 50 characters). Thanks!

@codecov
Copy link

codecov bot commented Sep 28, 2023

Codecov Report

All modified lines are covered by tests ✅

see 50 files with indirect coverage changes

📢 Thoughts on this report? Let us know!.

Copy link
Member

@davidzhao davidzhao left a comment

Choose a reason for hiding this comment

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

Thank you for the PR. It looks good!

Sorry for the delays getting to this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants