|
|
@@ -191,6 +191,24 @@ SessionBase.prototype.sendSSRCUpdateIq = function(sdpMediaSsrcs, sid, initiator,
|
|
191
|
191
|
});
|
|
192
|
192
|
modify.up(); // end of source
|
|
193
|
193
|
});
|
|
|
194
|
+
|
|
|
195
|
+ // generate source groups from lines
|
|
|
196
|
+ channel.ssrcGroups.forEach(function(ssrcGroup) {
|
|
|
197
|
+ if (ssrcGroup.ssrcs.length != 0) {
|
|
|
198
|
+
|
|
|
199
|
+ modify.c('ssrc-group', {
|
|
|
200
|
+ semantics: ssrcGroup.semantics,
|
|
|
201
|
+ xmlns: 'urn:xmpp:jingle:apps:rtp:ssma:0'
|
|
|
202
|
+ });
|
|
|
203
|
+
|
|
|
204
|
+ ssrcGroup.ssrcs.forEach(function (ssrc) {
|
|
|
205
|
+ modify.c('source', { ssrc: ssrc })
|
|
|
206
|
+ .up(); // end of source
|
|
|
207
|
+ });
|
|
|
208
|
+ modify.up(); // end of ssrc-group
|
|
|
209
|
+ }
|
|
|
210
|
+ });
|
|
|
211
|
+
|
|
194
|
212
|
modify.up(); // end of description
|
|
195
|
213
|
modify.up(); // end of content
|
|
196
|
214
|
});
|