Bug 1708813: Remember remote side's payload type on recv tracks when we were the offerer. r=mjf

Depends on D114039

Differential Revision: https://phabricator.services.mozilla.com/D114040
This commit is contained in:
Byron Campen [:bwc] 2021-05-03 18:53:17 +00:00
Родитель 98d9c7db9a
Коммит bc0f8757c0
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -409,8 +409,9 @@ std::vector<UniquePtr<JsepCodecDescription>> JsepTrack::NegotiateCodecs(
// First codec of ours that matches. See if we can negotiate it.
UniquePtr<JsepCodecDescription> clone(codec->Clone());
if (clone->Negotiate(fmt, remote, isOffer)) {
// If negotiation changed the payload type, remember that for later
codec->mDefaultPt = clone->mDefaultPt;
// If negotiation succeeded, remember the payload type the other side
// used for reoffers.
codec->mDefaultPt = fmt;
// Remember whether we negotiated rtx and the associated pt for later.
if (codec->mType == SdpMediaSection::kVideo) {