-
-
Notifications
You must be signed in to change notification settings - Fork 237
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
Reuse closed m= sections in Firefox #149
base: v3
Are you sure you want to change the base?
Conversation
Thanks. AFAIR there is a reason for me to not do this that way in the past, but I cannot recall which one now. I have to take a deeper look to this. IMHO if this works it must be done for all handlers and not just for Firefox. |
src/handlers/sdp/RemoteSdp.ts
Outdated
if (!this._firstMid) | ||
this._firstMid = newMediaSection.mid; | ||
|
||
// Append new section to the existing vector and the SDP object |
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.
Dot after en of comments.
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.
Fixed.
src/handlers/sdp/RemoteSdp.ts
Outdated
this._mediaSections.push(newMediaSection); | ||
this._sdpObject.media.push(newMediaSection.getObject()); | ||
|
||
// Add it to the map |
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.
Same for all the added comments.
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.
Periods added to the comments.
// Recreate map | ||
this._midToIndex.clear(); | ||
for (idx = 0; idx < this._mediaSections.length; ++idx) | ||
this._midToIndex.set(this._mediaSections[idx].mid, idx); |
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.
braces missing.
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.
Braces added.
I will come back to this PR next week. |
This PR handles m= sections reuse in Firefox by synchronizing RemoteSdp with the local description regardless of where the new transceiver's section is placed by the browser.