Bug 1632489 - Negotiate repaired-rtp-stream-id in simulcast mochitests; r=ng
authorDan Minor <dminor@mozilla.com>
Wed, 13 May 2020 19:31:50 +0000
changeset 529684 8e0260c418540d1c07090d4398d5b41d394df83d
parent 529683 cc52615f768271de6a6e7c921252c88b2a72d687
child 529685 22ef19e5542141ccd2ffffcf65e3d60260d61c4f
push id37414
push usernbeleuzu@mozilla.com
push dateThu, 14 May 2020 02:40:10 +0000
treeherdermozilla-central@045d696faa87 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersng
bugs1632489
milestone78.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1632489 - Negotiate repaired-rtp-stream-id in simulcast mochitests; r=ng Depends on D74840 Differential Revision: https://phabricator.services.mozilla.com/D74841
dom/media/tests/mochitest/sdpUtils.js
--- a/dom/media/tests/mochitest/sdpUtils.js
+++ b/dom/media/tests/mochitest/sdpUtils.js
@@ -233,16 +233,20 @@ var sdputils = {
 
   removeSimulcastProperties(sdp) {
     return sdp
       .replace(/a=simulcast:.*\r\n/g, "")
       .replace(/a=rid:.*\r\n/g, "")
       .replace(
         /a=extmap:[^\s]* urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id.*\r\n/g,
         ""
+      )
+      .replace(
+        /a=extmap:[^\s]* urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id.*\r\n/g,
+        ""
       );
   },
 
   transferSimulcastProperties(offer_sdp, answer_sdp) {
     if (!offer_sdp.includes("a=simulcast:")) {
       return answer_sdp;
     }
     ok(
@@ -260,16 +264,26 @@ var sdputils = {
       "a=extmap:([0-9+])/sendonly urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id"
     );
     ok(extmap_id != null, "Offer contains RID RTP header extension");
     new_answer_sdp =
       new_answer_sdp +
       "a=extmap:" +
       extmap_id[1] +
       "/recvonly urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id\r\n";
+    var extmap_id = offer_sdp.match(
+      "a=extmap:([0-9+])/sendonly urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id"
+    );
+    ok(extmap_id != null, "Offer contains RID RTP header extension");
+    new_answer_sdp =
+      new_answer_sdp +
+      "a=extmap:" +
+      extmap_id[1] +
+      "/recvonly urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id\r\n";
+
     return new_answer_sdp;
   },
 
   verifySdp(
     desc,
     expectedType,
     offerConstraintsList,
     offerOptions,