Bug 1344556 - Part 3: When answering, pay attention to JS simulcast constraints. r?drno draft
authorByron Campen [:bwc] <docfaraday@gmail.com>
Wed, 08 Mar 2017 13:51:10 -0600
changeset 551894 e2026e2633b725a3a1f11933254692055d999747
parent 551893 8c4df8561e0758ba132dfe6cc6a85dc91a606a21
child 551895 a0c504bafd8bfe32f16f08054a276c1d0e2936be
push id51186
push userbcampen@mozilla.com
push dateMon, 27 Mar 2017 16:29:37 +0000
reviewersdrno
bugs1344556
milestone55.0a1
Bug 1344556 - Part 3: When answering, pay attention to JS simulcast constraints. r?drno MozReview-Commit-ID: Krwt1om2NLF
media/webrtc/signaling/src/jsep/JsepTrack.cpp
--- a/media/webrtc/signaling/src/jsep/JsepTrack.cpp
+++ b/media/webrtc/signaling/src/jsep/JsepTrack.cpp
@@ -121,17 +121,17 @@ JsepTrack::AddToAnswer(const SdpMediaSec
   NegotiateCodecs(offer, &codecs.values);
   if (codecs.values.empty()) {
     return;
   }
 
   AddToMsection(codecs.values, answer);
 
   if (mDirection == sdp::kSend) {
-    std::vector<JsConstraints> constraints;
+    std::vector<JsConstraints> constraints(mJsEncodeConstraints);
     std::vector<SdpRidAttributeList::Rid> rids;
     GetRids(offer, sdp::kRecv, &rids);
     NegotiateRids(rids, &constraints);
     AddToMsection(constraints, sdp::kSend, answer);
   }
 }
 
 void