-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Include sdpMid and sdpMLineIndex for ICECandidates returned by OneICECandidate #2990
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2990 +/- ##
==========================================
+ Coverage 77.76% 77.96% +0.20%
==========================================
Files 89 89
Lines 10550 10578 +28
==========================================
+ Hits 8204 8247 +43
+ Misses 1853 1841 -12
+ Partials 493 490 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@joeturki This is the highest quality PR I have seen in a long time. This is really impressive stuff. When I read this I feel like I am reading code of someone who has been intimately involved with WebRTC/Go for years. I am so excited for you to be more involved :) |
Mind squashing everything into one commit and address the comments I left! Then we can merge this right away :) |
b7c60b4
to
b3109ce
Compare
Thanks :) I think it's ready. |
b3109ce
to
aa6f53c
Compare
Hey, my company is currently working on our Webcaster product and we encountered an issue that seems related. @joeturki I checked out the latest commit from your branch It would be nice if you could share your thoughts :) Thanks and best regards |
@finnhoeck Yeah, this PR primarily for the issue with the answer peer, but I'll go ahead and fix this too today. Thank you for the test. |
aa6f53c
to
37cfe8e
Compare
@finnhoeck Can you test it again? I think this is a better approach for now, and it works for both offer and answer. (Until i ship the multiple |
37cfe8e
to
52f5979
Compare
Hey @joeturki I tested it in our project. I was wondering that we only receive IceCandidates for the transceiver of kind "audio" and not of kind "video". So I added a check to the Does that maybe have to do with the Thank you very much for your work! If I can further help with testing, please just ping me :) |
Yes, It's just how pion work right-now, but it's not related to this unless you have a non-bundle client. and it shouldn't be an issue.
|
@finnhoeck do you have a PlanB client, do you just name your audio mid |
@joeturki No, we use Unified Plan. I am naming the mids for better readability. But with "audio" and "video" I meant the |
@jech It's now a single function, I will fix the missing mid in the rest of the code and add tests there, I think i will do it in Edit: I fixed the issues. and squashed. |
71f7c02
to
8fa1c2c
Compare
Joe has requested that I review this commit, and I'm extremely embarassed: while all of the code looks correct to me, I have no idea what it does. As far as I can tell, we're carrying around some extra data, but the commit does not ever change Pion's behaviour in the case of a correct client. So while I'm glad to declare nihil obstat, I'm not competent to order imprimatur. |
@jech I asked you to review because i fixed the comments you made, you were correct :) Thanks. |
@joeturki Here is the SDP that I promised to share: https://gist.github.com/finnhoeck/5581f4214a3bad99f5304208b53f79f0 Not sure if it helps with anything, though :) |
@finnhoeck works as intended. |
8fa1c2c
to
58d8c7b
Compare
@Sean-Der it's ready for merge :) |
@joeturki fantastic :) go ahead and merge! If someone else approves you should have a write bit, check if it works! |
Description
Currently, Pion returns an empty
sdpMid
and a 0sdpMLineIndex
. This PR ensures Pion returns the correspondingsdpMid
andsdpMLineIndex
for ICE candidates for clients that expects it. Fixes trickle issues.Changes
ICECandidates
: New fieldsSDPMid
andSDPMLineIndex
.ICEGatherer
:SetMediaStreamIdentification
and return the correctSDPMid
andSDPMLineIndex
.extractICEDetails
: Return a struct instead of multiple values.extractICEDetails
refactored the media description selection to a different function.Reference issue
Fixes #2690
Fixes #1833