Bug 1449272 - Part 2: When using both offerToReceiveAudio and offerToReceiveVideo, create the audio transceiver first. r=jib

MozReview-Commit-ID: ClgChq6FLQ7

--HG--
extra : rebase_source : e2c2e9f2abd609522d618b6828c4447f4a515dd0
This commit is contained in:
Byron Campen [:bwc] 2018-03-27 13:36:02 -05:00
Родитель aa7de1ce53
Коммит c67de40370
1 изменённых файлов: 4 добавлений и 4 удалений

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

@ -814,14 +814,14 @@ class RTCPeerConnection {
// Handles offerToReceiveAudio/Video
_ensureTransceiversForOfferToReceive(options) {
if (options.offerToReceiveVideo) {
this._ensureOfferToReceive("video");
}
if (options.offerToReceiveAudio) {
this._ensureOfferToReceive("audio");
}
if (options.offerToReceiveVideo) {
this._ensureOfferToReceive("video");
}
this._transceivers
.filter(transceiver => {
return (options.offerToReceiveVideo === false &&