Ver código fonte

change in focus protocol, use new proprietary variant

j8
Philipp Hancke 11 anos atrás
pai
commit
86b4355704
1 arquivos alterados com 3 adições e 4 exclusões
  1. 3
    4
      libs/strophe/strophe.jingle.sessionbase.js

+ 3
- 4
libs/strophe/strophe.jingle.sessionbase.js Ver arquivo

@@ -156,8 +156,7 @@ SessionBase.prototype.sendSSRCUpdateIq = function(sdpMediaSsrcs, sid, initiator,
156 156
     var modify = $iq({to: toJid, type: 'set'})
157 157
         .c('jingle', {
158 158
             xmlns: 'urn:xmpp:jingle:1',
159
-            //action: isAdd ? 'source-add' : 'source-remove', -- not yet
160
-            action: isAdd ? 'addsource' : 'removesource',
159
+            action: isAdd ? 'source-add' : 'source-remove', -- not yet
161 160
             initiator: initiator,
162 161
             sid: sid
163 162
         }
@@ -170,7 +169,7 @@ SessionBase.prototype.sendSSRCUpdateIq = function(sdpMediaSsrcs, sid, initiator,
170 169
         var channel = sdpMediaSsrcs[channelNum];
171 170
         modify.c('content', {name: channel.mediaType});
172 171
 
173
-        // modify.c('description', {xmlns:'urn:xmpp:jingle:apps:rtp:1', media: channel.mediaType}); -- not yet
172
+        modify.c('description', {xmlns:'urn:xmpp:jingle:apps:rtp:1', media: channel.mediaType});
174 173
         // FIXME: not completly sure this operates on blocks and / or handles different ssrcs correctly
175 174
         // generate sources from lines
176 175
         Object.keys(channel.ssrcs).forEach(function(ssrcNum) {
@@ -192,7 +191,7 @@ SessionBase.prototype.sendSSRCUpdateIq = function(sdpMediaSsrcs, sid, initiator,
192 191
             });
193 192
             modify.up(); // end of source
194 193
         });
195
-        // modify.up(); // end of description -- not yet
194
+        modify.up(); // end of description
196 195
         modify.up(); // end of content
197 196
     });
198 197
     if (modified) {

Carregando…
Cancelar
Salvar