Переглянути джерело

Fixes track removal for NWJS

master
hristoterezov 9 роки тому
джерело
коміт
49d3d84a65
1 змінених файлів з 2 додано та 2 видалено
  1. 2
    2
      modules/xmpp/JingleSessionPC.js

+ 2
- 2
modules/xmpp/JingleSessionPC.js Переглянути файл

@@ -498,7 +498,7 @@ JingleSessionPC._fixAnswerRFC4145Setup = function (offer, answer) {
498 498
 JingleSessionPC.prototype.replaceTransport = function (jingleOfferElem,
499 499
                                                        success,
500 500
                                                        failure) {
501
-    
501
+
502 502
     // We need to first set an offer without the 'data' section to have the SCTP
503 503
     // stack cleaned up. After that the original offer is set to have the SCTP
504 504
     // connection established with the new bridge.
@@ -1250,7 +1250,7 @@ JingleSessionPC.prototype.remoteStreamAdded = function (stream) {
1250 1250
         return;
1251 1251
     }
1252 1252
     // Bind 'addtrack'/'removetrack' event handlers
1253
-    if (RTCBrowserType.isChrome()) {
1253
+    if (RTCBrowserType.isChrome() || RTCBrowserType.isNWJS()) {
1254 1254
         stream.onaddtrack = function (event) {
1255 1255
             self.remoteTrackAdded(event.target, event.track);
1256 1256
         };

Завантаження…
Відмінити
Зберегти