Skip to content

Commit

Permalink
Bug 1835859 [wpt PR 40306] - webrtc wpt: restore mid extension locall…
Browse files Browse the repository at this point in the history
…y in simulcast tests, a=testonly

Automatic update from web-platform-tests
webrtc wpt: restore mid extension locally in simulcast tests

which is mandatory to implement per
  https://datatracker.ietf.org/doc/html/rfc8853#section-5.5

BUG=chromium:1422258

Change-Id: Ic9118a4082748ba1ddce397810d31e282d5e005e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4573634
Commit-Queue: Philipp Hancke <[email protected]>
Reviewed-by: Harald Alvestrand <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1150858}

--

wpt-commits: db1ac12ce7bb790ae98a1d03a22b54b55b2a93d2
wpt-pr: 40306
  • Loading branch information
fippo authored and moz-wptsync-bot committed Jun 13, 2023
1 parent a8d1f1d commit 5850c0b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions testing/web-platform/tests/webrtc/simulcast/simulcast.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,16 @@ function midToRid(description, localDescription, rids) {
}

const localMid = localDescription ? SDPUtils.getMid(SDPUtils.splitSections(localDescription.sdp)[1]) : '0';
if (localDescription) {
const localVideoSection = SDPUtils.splitSections(localDescription.sdp)[1];
const localParameters = SDPUtils.parseRtpParameters(localVideoSection);

const localMidExtension = localParameters.headerExtensions
.find(ext => ext.uri === 'urn:ietf:params:rtp-hdrext:sdes:mid');
if (localMidExtension) {
rtpParameters.headerExtensions.push(localMidExtension);
}
}

if (!rids) {
rids = [];
Expand Down

0 comments on commit 5850c0b

Please sign in to comment.