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

One single direction per extmap #321

Merged
merged 4 commits into from
Oct 13, 2022
Merged

One single direction per extmap #321

merged 4 commits into from
Oct 13, 2022

Conversation

algesten
Copy link
Member

@algesten algesten commented Oct 12, 2022

SDP has the syntax: a=extmap:<id>/<direction> <uri>

The / part is optional (and rarely seen it in the wild).

The current MediaEngine API makes it seem like it's possible to provide many directions for each map (it takes a Vec). This commit changes that sov only single optional direction can be provided.

This simplifies internal matching logic and fixes a bug where setting the transceiver direction inactive, would (incorrectly) result in no extmaps matching for the m-line.

SDP has the syntax: a=extmap:<id>/<direction> <uri>

The /<direction> part is optional (and rarely seen it in the wild).

The current MediaEngine API makes it seem like it's possible to
provide many directions for each map (it takes a Vec). This commit
changes that sov only single optional direction can be provided.

This simplifies internal matching logic and fixes a bug where setting
the transceiver direction `inactive`, would (incorrectly) result in no
extmaps matching for the m-line.
webrtc/src/api/media_engine/mod.rs Show resolved Hide resolved
webrtc/src/api/media_engine/mod.rs Outdated Show resolved Hide resolved
webrtc/src/peer_connection/sdp/mod.rs Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Oct 12, 2022

Codecov Report

Base: 56.80% // Head: 56.79% // Decreases project coverage by -0.01% ⚠️

Coverage data is based on head (1fa5f23) compared to base (7a93dc8).
Patch coverage: 73.68% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #321      +/-   ##
==========================================
- Coverage   56.80%   56.79%   -0.02%     
==========================================
  Files         500      500              
  Lines       47719    47692      -27     
  Branches    12867    12859       -8     
==========================================
- Hits        27107    27086      -21     
- Misses       9913     9919       +6     
+ Partials    10699    10687      -12     
Impacted Files Coverage Δ
examples/examples/simulcast/simulcast.rs 0.00% <0.00%> (ø)
webrtc/src/error.rs 10.52% <ø> (ø)
...c/src/rtp_transceiver/rtp_transceiver_direction.rs 95.74% <ø> (+3.15%) ⬆️
webrtc/src/api/media_engine/media_engine_test.rs 57.00% <77.77%> (-0.59%) ⬇️
interceptor/src/stats/mod.rs 79.71% <0.00%> (-2.90%) ⬇️
rtcp/src/extended_report/dlrr.rs 55.88% <0.00%> (-1.48%) ⬇️
sctp/src/association/association_test.rs 47.03% <0.00%> (+0.08%) ⬆️
ice/src/agent/agent_internal.rs 63.64% <0.00%> (+0.14%) ⬆️
ice/src/agent/agent_gather.rs 57.71% <0.00%> (+0.20%) ⬆️
... and 2 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@algesten algesten merged commit 60f4c43 into master Oct 13, 2022
@algesten algesten deleted the fix/extmap-direction branch October 13, 2022 07:27
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

2 participants