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

Add local/remote ICE candidates to current/pending description. #83

Merged
merged 7 commits into from
Mar 6, 2024

Conversation

LVala
Copy link
Member

@LVala LVala commented Mar 5, 2024

Thanks to this changes, session description obtained from pending_local_description() etc. will contain gathered/applied ICE candidates.

Adresses #80

@LVala LVala self-assigned this Mar 5, 2024
Copy link

codecov bot commented Mar 6, 2024

Codecov Report

Merging #83 (34198ba) into master (348bd92) will decrease coverage by 0.23%.
The diff coverage is 45.83%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #83      +/-   ##
==========================================
- Coverage   89.03%   88.80%   -0.23%     
==========================================
  Files          31       31              
  Lines        1395     1411      +16     
==========================================
+ Hits         1242     1253      +11     
- Misses        153      158       +5     
Files Coverage Δ
lib/ex_webrtc/sdp_utils.ex 90.62% <100.00%> (+0.22%) ⬆️
lib/ex_webrtc/ice_transport.ex 76.92% <50.00%> (-4.90%) ⬇️
lib/ex_webrtc/peer_connection.ex 87.14% <36.84%> (-0.51%) ⬇️

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 348bd92...34198ba. Read the comment docs.

@LVala LVala marked this pull request as ready for review March 6, 2024 09:17
@LVala LVala requested a review from mickel8 March 6, 2024 09:18
@@ -123,6 +123,13 @@ defmodule ExWebRTC.SDPUtils do
|> Enum.map(fn {"candidate", attr} -> attr end)
end

@spec add_ice_candidates(ExSDP.t(), [binary()]) :: ExSDP.t()
Copy link
Member

Choose a reason for hiding this comment

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

To be consistent with get_ice_candidates?

Suggested change
@spec add_ice_candidates(ExSDP.t(), [binary()]) :: ExSDP.t()
@spec add_ice_candidates(ExSDP.t(), [String.t()]) :: ExSDP.t()

@@ -885,6 +885,27 @@ defmodule ExWebRTC.PeerConnectionTest do
end)
end

describe "get_description" do
Copy link
Member

Choose a reason for hiding this comment

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

Nitpick: Could we put this after set_local_description test? I tried to match the order of tests with the order of functions in peer_connection.ex for easier navigation

Suggested change
describe "get_description" do
describe "get_local_description/1" do

@LVala LVala merged commit 93cac5c into master Mar 6, 2024
4 checks passed
@LVala LVala deleted the include-candidates-in-ld branch March 6, 2024 12:13
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