Explorar el Código

Merge pull request #336 from jitsi/electron_add_tracks

fix(electron): Add/remove track handlers
tags/v0.0.2
Дамян Минков hace 8 años
padre
commit
4f5cf8d7d1
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2
    1
      modules/xmpp/JingleSessionPC.js

+ 2
- 1
modules/xmpp/JingleSessionPC.js Ver fichero

@@ -1190,7 +1190,8 @@ JingleSessionPC.prototype.remoteStreamAdded = function (stream) {
1190 1190
         return;
1191 1191
     }
1192 1192
     // Bind 'addtrack'/'removetrack' event handlers
1193
-    if (RTCBrowserType.isChrome() || RTCBrowserType.isNWJS()) {
1193
+    if (RTCBrowserType.isChrome() || RTCBrowserType.isNWJS()
1194
+        || RTCBrowserType.isElectron()) {
1194 1195
         stream.onaddtrack = function (event) {
1195 1196
             self.remoteTrackAdded(event.target, event.track);
1196 1197
         };

Loading…
Cancelar
Guardar