Browse Source

Fixes audio.

j8
Yana Stamcheva 12 years ago
parent
commit
697340bea1
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      libs/colibri.js

+ 3
- 3
libs/colibri.js View File

@@ -314,7 +314,7 @@ ColibriFocus.prototype.initiate = function (peer, isInitiator) {
314 314
             sdp.removeMediaLines(i, 'a=fingerprint:');
315 315
             sdp.removeMediaLines(i, 'a=setup:');
316 316
 
317
-            if (i > 0) { // not for audio
317
+            if (1) { //i > 0) { // not for audio FIXME: does not work as intended
318 318
                 // re-add all remote a=ssrcs
319 319
                 for (var jid in this.remotessrc) {
320 320
                     if (jid == peer) continue;
@@ -572,13 +572,13 @@ ColibriFocus.prototype.setRemoteDescription = function (session, elem, desctype)
572 572
     // ACT 3: note the SSRCs
573 573
     this.remotessrc[session.peerjid] = [];
574 574
     for (channel = 0; channel < this.channels[participant].length; channel++) {
575
-        if (channel == 0) continue;
575
+        //if (channel == 0) continue; FIXME: does not work as intended
576 576
         this.remotessrc[session.peerjid][channel] = SDPUtil.find_lines(remoteSDP.media[channel], 'a=ssrc:').join('\r\n') + '\r\n';
577 577
     }
578 578
 
579 579
     // ACT 4: add new a=ssrc lines to local remotedescription
580 580
     for (channel = 0; channel < this.channels[participant].length; channel++) {
581
-        if (channel == 0) continue;
581
+        //if (channel == 0) continue; FIXME: does not work as intended
582 582
         if (!this.addssrc[channel]) this.addssrc[channel] = '';
583 583
         this.addssrc[channel] += SDPUtil.find_lines(remoteSDP.media[channel], 'a=ssrc:').join('\r\n') + '\r\n';
584 584
     }

Loading…
Cancel
Save