-
-
Notifications
You must be signed in to change notification settings - Fork 376
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
Remove Extra Lookup in PeerConnection::forwardMedia() #668
Conversation
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.
While it's a good idea to optimize the dispatching by SSRC, I'm pretty sure the proposed changes won't work as-is for all use cases: since incomingTrack()
is only called in processLocalDescription()
when generating a local answer description, SSRCs present in a remote answer after a local offer won't be inserted in mTracksBySsrc
. Have you checked the media-receiver
example still work with the changes?
You're right, I checked against |
Actually, this is quite independant from tracks creation: for instance, an SSRC will commonly be added in the remote description for an already-existing track. I think updating the map in |
8fa68e1
to
4ecaf60
Compare
I've re-implemented the changes to take place in |
Thank for the changes, I still have a few comments but now the approach looks good. |
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.
Looks good, thank you!
My bad, I approved a bit too fast, an additional call to |
Optimizes media forwarding somewhat.