|
@@ -193,18 +193,6 @@ class MLineWrap {
|
193
|
193
|
&& parsePrimarySSRC(group) === primarySSRC);
|
194
|
194
|
}
|
195
|
195
|
|
196
|
|
- /**
|
197
|
|
- * @param {string|null} msid the media stream id or <tt>null</tt> to match
|
198
|
|
- * the first SSRC object with any 'msid' value.
|
199
|
|
- * @return {Object|undefined} the SSRC object as defined by 'sdp-transform'
|
200
|
|
- * lib.
|
201
|
|
- */
|
202
|
|
- findSSRCByMSID(msid) {
|
203
|
|
- return this.ssrcs.find(
|
204
|
|
- ssrcObj => ssrcObj.attribute === 'msid'
|
205
|
|
- && (msid === null || ssrcObj.value === msid));
|
206
|
|
- }
|
207
|
|
-
|
208
|
196
|
/**
|
209
|
197
|
* Gets the SSRC count for the underlying media description.
|
210
|
198
|
* @return {number}
|
|
@@ -320,13 +308,6 @@ class MLineWrap {
|
320
|
308
|
return videoSSRCs;
|
321
|
309
|
}
|
322
|
310
|
|
323
|
|
- /**
|
324
|
|
- * Dumps all SSRC groups of this media description to JSON.
|
325
|
|
- */
|
326
|
|
- dumpSSRCGroups() {
|
327
|
|
- return JSON.stringify(this.mLine.ssrcGroups);
|
328
|
|
- }
|
329
|
|
-
|
330
|
311
|
/**
|
331
|
312
|
* Removes all SSRC groups which contain given SSRC number at any position.
|
332
|
313
|
* @param {number} ssrc the SSRC for which all matching groups are to be
|
|
@@ -355,21 +336,6 @@ class MLineWrap {
|
355
|
336
|
.filter(groupInfo => groupInfo.semantics !== semantics);
|
356
|
337
|
}
|
357
|
338
|
|
358
|
|
- /**
|
359
|
|
- * Replaces SSRC (does not affect SSRC groups, but only attributes).
|
360
|
|
- * @param {number} oldSSRC the old SSRC number
|
361
|
|
- * @param {number} newSSRC the new SSRC number
|
362
|
|
- */
|
363
|
|
- replaceSSRC(oldSSRC, newSSRC) {
|
364
|
|
- if (this.mLine.ssrcs) {
|
365
|
|
- this.mLine.ssrcs.forEach(ssrcInfo => {
|
366
|
|
- if (ssrcInfo.id === oldSSRC) {
|
367
|
|
- ssrcInfo.id = newSSRC;
|
368
|
|
- }
|
369
|
|
- });
|
370
|
|
- }
|
371
|
|
- }
|
372
|
|
-
|
373
|
339
|
/**
|
374
|
340
|
* Adds given SSRC group to this media description.
|
375
|
341
|
* @param {object} group the SSRC group object as defined by
|