|
@@ -241,6 +241,8 @@ SDP.prototype.toJingle = function(elem, thecreator) {
|
241
|
241
|
|
242
|
242
|
if (afmtpline) {
|
243
|
243
|
tmp = SDPUtil.parseFmtp(afmtpline);
|
|
244
|
+
|
|
245
|
+ // eslint-disable-next-line max-depth
|
244
|
246
|
for (k = 0; k < tmp.length; k++) {
|
245
|
247
|
elem.c('parameter', tmp[k]).up();
|
246
|
248
|
}
|
|
@@ -317,11 +319,14 @@ SDP.prototype.toJingle = function(elem, thecreator) {
|
317
|
319
|
// FIXME what is this ? global APP.RTC in SDP ?
|
318
|
320
|
const localTrack = APP.RTC.getLocalTracks(mline.media);
|
319
|
321
|
|
|
322
|
+ // eslint-disable-next-line max-depth
|
320
|
323
|
if (localTrack) {
|
321
|
324
|
// FIXME before this changes the track id was accessed,
|
322
|
325
|
// but msid stands for the stream id, makes no sense ?
|
323
|
326
|
msid = localTrack.getTrackId();
|
324
|
327
|
}
|
|
328
|
+
|
|
329
|
+ // eslint-disable-next-line max-depth
|
325
|
330
|
if (msid !== null) {
|
326
|
331
|
msid = SDPUtil.filterSpecialChars(msid);
|
327
|
332
|
elem.c('parameter');
|
|
@@ -375,7 +380,11 @@ SDP.prototype.toJingle = function(elem, thecreator) {
|
375
|
380
|
uri: tmp.uri,
|
376
|
381
|
id: tmp.value
|
377
|
382
|
});
|
|
383
|
+
|
|
384
|
+ // eslint-disable-next-line max-depth
|
378
|
385
|
if (tmp.hasOwnProperty('direction')) {
|
|
386
|
+
|
|
387
|
+ // eslint-disable-next-line max-depth
|
379
|
388
|
switch (tmp.direction) {
|
380
|
389
|
case 'sendonly':
|
381
|
390
|
elem.attrs({ senders: 'responder' });
|