зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
aa7de1ce53
Коммит
c67de40370
|
@ -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 &&
|
||||
|
|
Загрузка…
Ссылка в новой задаче