Просмотр исходного кода

Merge pull request #375 from jitsi/fix-transport-replace

Fix broken 'transport-replace'
dev1
bbaldino 9 лет назад
Родитель
Сommit
a43f76b8a9
1 измененных файлов: 3 добавлений и 2 удалений
  1. 3
    2
      modules/xmpp/JingleSessionPC.js

+ 3
- 2
modules/xmpp/JingleSessionPC.js Просмотреть файл

@@ -412,8 +412,9 @@ JingleSessionPC.prototype.replaceTransport = function (jingleOfferElem,
412 412
             this.setOfferCycle(
413 413
                 originalOffer,
414 414
                 () => {
415
-                    // Set local description OK, now localSDP up to date
416
-                    this.sendTransportAccept(this.localSDP, success, failure);
415
+                    const localSDP
416
+                        = new SDP(this.peerconnection.localDescription.sdp);
417
+                    this.sendTransportAccept(localSDP, success, failure);
417 418
                 },
418 419
                 failure);
419 420
         },

Загрузка…
Отмена
Сохранить