浏览代码

ref(JitsiConference): rename 'addLocalStream' + doc fixes

dev1
paweldomas 9 年前
父节点
当前提交
f8b9faed99
共有 2 个文件被更改,包括 6 次插入5 次删除
  1. 5
    4
      JitsiConference.js
  2. 1
    1
      modules/RTC/JitsiLocalTrack.js

+ 5
- 4
JitsiConference.js 查看文件

626
  * @param {function(error)} errorCallback callback executed if stream addition fail.
626
  * @param {function(error)} errorCallback callback executed if stream addition fail.
627
  * @param {object} ssrcInfo object with information about the SSRCs associated with the
627
  * @param {object} ssrcInfo object with information about the SSRCs associated with the
628
  * stream.
628
  * stream.
629
- * @param {boolean} [dontModifySources] if true _modifySources won't be called.
630
- * Used for streams added before the call start.
629
+ * @param {boolean} [dontModifySources] if <tt>true</tt> _modifySources won't be
630
+ * called. The option is used for adding stream, before the Jingle call is
631
+ * started. That is before the 'session-accept' is sent.
631
  */
632
  */
632
-JitsiConference.prototype.addLocalStream
633
+JitsiConference.prototype._addLocalStream
633
     = function (stream, callback, errorCallback, ssrcInfo, dontModifySources) {
634
     = function (stream, callback, errorCallback, ssrcInfo, dontModifySources) {
634
     if(this.jingleSession) {
635
     if(this.jingleSession) {
635
         this.jingleSession.addStream(
636
         this.jingleSession.addStream(
1021
             };
1022
             };
1022
         }
1023
         }
1023
         try {
1024
         try {
1024
-            this.addLocalStream(
1025
+            this._addLocalStream(
1025
                 localTrack.getOriginalStream(), function () {}, function () {},
1026
                 localTrack.getOriginalStream(), function () {}, function () {},
1026
                 ssrcInfo, true /* don't modify SSRCs */);
1027
                 ssrcInfo, true /* don't modify SSRCs */);
1027
         } catch(e) {
1028
         } catch(e) {

+ 1
- 1
modules/RTC/JitsiLocalTrack.js 查看文件

370
     var self = this;
370
     var self = this;
371
 
371
 
372
     return new Promise(function(resolve, reject) {
372
     return new Promise(function(resolve, reject) {
373
-        self.conference.addLocalStream(
373
+        self.conference._addLocalStream(
374
             self.stream,
374
             self.stream,
375
             resolve,
375
             resolve,
376
             (error) => reject(new Error(error)),
376
             (error) => reject(new Error(error)),

正在加载...
取消
保存