|
|
@@ -1438,6 +1438,20 @@ JingleSessionPC.prototype.setLocalDescription = function () {
|
|
1438
|
1438
|
'ssrc': ssrc.id,
|
|
1439
|
1439
|
'type': media.type
|
|
1440
|
1440
|
});
|
|
|
1441
|
+
|
|
|
1442
|
+ // In FF we have multiple local SSRC per media type, 1 that is
|
|
|
1443
|
+ // sending and some that are receive only. The
|
|
|
1444
|
+ // localStramsSSRC['audio'] needs to be set to the one that is
|
|
|
1445
|
+ // sending! We find it by checking for an msid. Note that
|
|
|
1446
|
+ // self.localStreamsSSRC is primarily used by the tests atm.
|
|
|
1447
|
+ var isSending = media.ssrcs.some(function (ssrc$1) {
|
|
|
1448
|
+ return ssrc$1.id == ssrc.id && ssrc$1.attribute == 'msid';
|
|
|
1449
|
+ });
|
|
|
1450
|
+
|
|
|
1451
|
+ if (!isSending) {
|
|
|
1452
|
+ return;
|
|
|
1453
|
+ }
|
|
|
1454
|
+
|
|
1441
|
1455
|
// FIXME allows for only one SSRC per media type
|
|
1442
|
1456
|
self.localStreamsSSRC[media.type] = ssrc.id;
|
|
1443
|
1457
|
});
|