浏览代码

change in focus protocol, use new proprietary variant

j8
Philipp Hancke 11 年前
父节点
当前提交
86b4355704
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. 3
    4
      libs/strophe/strophe.jingle.sessionbase.js

+ 3
- 4
libs/strophe/strophe.jingle.sessionbase.js 查看文件

156
     var modify = $iq({to: toJid, type: 'set'})
156
     var modify = $iq({to: toJid, type: 'set'})
157
         .c('jingle', {
157
         .c('jingle', {
158
             xmlns: 'urn:xmpp:jingle:1',
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
             initiator: initiator,
160
             initiator: initiator,
162
             sid: sid
161
             sid: sid
163
         }
162
         }
170
         var channel = sdpMediaSsrcs[channelNum];
169
         var channel = sdpMediaSsrcs[channelNum];
171
         modify.c('content', {name: channel.mediaType});
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
         // FIXME: not completly sure this operates on blocks and / or handles different ssrcs correctly
173
         // FIXME: not completly sure this operates on blocks and / or handles different ssrcs correctly
175
         // generate sources from lines
174
         // generate sources from lines
176
         Object.keys(channel.ssrcs).forEach(function(ssrcNum) {
175
         Object.keys(channel.ssrcs).forEach(function(ssrcNum) {
192
             });
191
             });
193
             modify.up(); // end of source
192
             modify.up(); // end of source
194
         });
193
         });
195
-        // modify.up(); // end of description -- not yet
194
+        modify.up(); // end of description
196
         modify.up(); // end of content
195
         modify.up(); // end of content
197
     });
196
     });
198
     if (modified) {
197
     if (modified) {

正在加载...
取消
保存