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

Improve UX of Configuration #120

Merged
merged 12 commits into from
Jun 25, 2024
Merged

Improve UX of Configuration #120

merged 12 commits into from
Jun 25, 2024

Conversation

LVala
Copy link
Member

@LVala LVala commented Jun 20, 2024

With this PR:

  • Users can configure whether they want to use features like Sender/Receiver Reports, TWCC, RTX, etc.
  • adds necessary RTP header extensions, RTCP feedbacks, and RTX codecs by default depending on features enabled
  • in general, created SDPs correspond to the config more closely

@LVala LVala self-assigned this Jun 20, 2024
Copy link

codecov bot commented Jun 20, 2024

Codecov Report

Attention: Patch coverage is 91.38577% with 23 lines in your changes missing coverage. Please review.

Project coverage is 87.01%. Comparing base (2fb532b) to head (04f0ee7).

Current head 04f0ee7 differs from pull request most recent head 799f237

Please upload reports for the commit 799f237 to get more accurate results.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #120      +/-   ##
==========================================
- Coverage   88.01%   87.01%   -1.00%     
==========================================
  Files          34       34              
  Lines        1727     1802      +75     
==========================================
+ Hits         1520     1568      +48     
- Misses        207      234      +27     
Files Coverage Δ
lib/ex_webrtc/media/ogg/page.ex 97.87% <ø> (ø)
lib/ex_webrtc/rtp_receiver/simulcast_demuxer.ex 96.15% <ø> (ø)
lib/ex_webrtc/rtp_sender.ex 93.75% <100.00%> (+0.89%) ⬆️
lib/ex_webrtc/rtp_transceiver.ex 91.35% <100.00%> (-1.33%) ⬇️
lib/ex_webrtc/sdp_utils.ex 92.41% <ø> (ø)
lib/ex_webrtc/rtp_receiver.ex 71.01% <72.72%> (-7.68%) ⬇️
lib/ex_webrtc/peer_connection/configuration.ex 94.92% <96.29%> (+3.26%) ⬆️
lib/ex_webrtc/peer_connection.ex 81.20% <81.01%> (-2.27%) ⬇️

... 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 2fb532b...799f237. Read the comment docs.

@LVala LVala mentioned this pull request Jun 20, 2024
54 tasks
@LVala LVala marked this pull request as ready for review June 21, 2024 09:25
@LVala LVala requested a review from mickel8 June 21, 2024 09:25
Copy link
Member

@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, really good job! I just put a couple of nitpicks

lib/ex_webrtc/peer_connection/configuration.ex Outdated Show resolved Hide resolved
lib/ex_webrtc/peer_connection/configuration.ex Outdated Show resolved Hide resolved
lib/ex_webrtc/peer_connection/configuration.ex Outdated Show resolved Hide resolved
lib/ex_webrtc/peer_connection/configuration.ex Outdated Show resolved Hide resolved
lib/ex_webrtc/peer_connection/configuration.ex Outdated Show resolved Hide resolved
@@ -1,38 +1,22 @@
defmodule ExWebRTC.PeerConnection.ConfigurationTest do
Copy link
Member

Choose a reason for hiding this comment

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

Really nice tests!

Copy link
Member Author

Choose a reason for hiding this comment

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

lib/ex_webrtc/peer_connection.ex Show resolved Hide resolved
@LVala LVala requested a review from mickel8 June 25, 2024 10:31
* `rtp_header_extensions` - list of RTP header extensions to negotiate. Refer to `t:rtp_header_extension/0` for more information.
* `rtcp_feedbacks` - list of RTCP feedbacks to negotiate. Refer to `t:rtcp_feedback/0` for more information.

Instead of manually enabling an RTP header extension or an RTCP feedback, you may want to use a `t:feature/0` instead, which will enable
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Instead of manually enabling an RTP header extension or an RTCP feedback, you may want to use a `t:feature/0` instead, which will enable
Instead of manually enabling an RTP header extension or an RTCP feedback, you may want to use a `t:feature/0`, which will enable

@LVala LVala merged commit 8b0af9e into master Jun 25, 2024
1 check passed
@LVala LVala deleted the config branch June 25, 2024 10:43
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.

2 participants