-
Notifications
You must be signed in to change notification settings - Fork 8
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
Conversation
Codecov Report
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
Continue to review full report in Codecov by Sentry.
|
lib/ex_webrtc/sdp_utils.ex
Outdated
@@ -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() |
There was a problem hiding this comment.
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?
@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 |
There was a problem hiding this comment.
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
describe "get_description" do | |
describe "get_local_description/1" do |
Thanks to this changes, session description obtained from
pending_local_description()
etc. will contain gathered/applied ICE candidates.Adresses #80