Skip to content

Conversation

@roznawsk
Copy link
Member

As described here: https://www.w3.org/TR/webrtc/#methods-8
The zero port shouldn't be generated in the answer, if the transceiver is in the stopping state.

@linear
Copy link

linear bot commented Jul 24, 2025

@roznawsk roznawsk requested review from Karolk99 and mickel8 July 24, 2025 12:27
@codecov
Copy link

codecov bot commented Jul 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.77%. Comparing base (e339453) to head (af103cd).
⚠️ Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #228      +/-   ##
==========================================
- Coverage   87.86%   87.77%   -0.10%     
==========================================
  Files          54       54              
  Lines        2752     2756       +4     
==========================================
+ Hits         2418     2419       +1     
- Misses        334      337       +3     
Files with missing lines Coverage Δ
lib/ex_webrtc/peer_connection.ex 85.51% <100.00%> (+0.01%) ⬆️
lib/ex_webrtc/rtp_transceiver.ex 91.54% <100.00%> (+0.12%) ⬆️

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e339453...af103cd. Read the comment docs.

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

# https://www.w3.org/TR/webrtc/#dfn-check-if-negotiation-is-needed
defp tr_negotiation_needed?([], _), do: false

defp tr_negotiation_needed?([tr | _transceivers], _state) when tr.stopping and not tr.stopped,
Copy link
Member Author

Choose a reason for hiding this comment

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

W3C, section 4.7.3

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add a comment referencing this section?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's right above already, so I think we're good

Copy link
Contributor

@mickel8 mickel8 left a comment

Choose a reason for hiding this comment

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

Nice!

# https://www.w3.org/TR/webrtc/#dfn-check-if-negotiation-is-needed
defp tr_negotiation_needed?([], _), do: false

defp tr_negotiation_needed?([tr | _transceivers], _state) when tr.stopping and not tr.stopped,
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add a comment referencing this section?

@roznawsk roznawsk merged commit 2dc5768 into master Jul 29, 2025
3 checks passed
@roznawsk roznawsk deleted the FCE-1687-audio-only-negotiation branch July 29, 2025 12:36
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.

3 participants