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

Reuse closed m= sections in Firefox #149

Open
wants to merge 13 commits into
base: v3
Choose a base branch
from
Prev Previous commit
Next Next commit
Merge branch 'versatica:v3' into firefox-m-reuse
snnz committed Feb 17, 2023

Verified

This commit was signed with the committer’s verified signature. The key has expired.
tvdeyen Thomas von Deyen
commit 1d1977d7b3a31a0d84e8d37c53f0831e37618161
12 changes: 12 additions & 0 deletions src/handlers/sdp/RemoteSdp.ts
Original file line number Diff line number Diff line change
@@ -509,6 +509,18 @@ export class RemoteSdp
this._regenerateBundleMids();
}

_findMediaSection(mid: string): MediaSection
{
const idx = this._midToIndex.get(mid);

if (idx === undefined)
{
throw new Error(`no media section found with mid '${mid}'`);
}

return this._mediaSections[idx];
}

_regenerateBundleMids(): void
{
if (!this._dtlsParameters)
You are viewing a condensed version of this merge commit. You can view the full changes here.