Explorar el Código

ref(JitsiConference): remove "WebRTC" from names

dev1
paweldomas hace 9 años
padre
commit
b3681eab4d
Se han modificado 2 ficheros con 5 adiciones y 5 borrados
  1. 3
    3
      JitsiConference.js
  2. 2
    2
      modules/RTC/JitsiLocalTrack.js

+ 3
- 3
JitsiConference.js Ver fichero

@@ -629,7 +629,7 @@ JitsiConference.prototype._setupNewTrack = function (newTrack) {
629 629
  * @param {boolean} [dontModifySources] if true _modifySources won't be called.
630 630
  * Used for streams added before the call start.
631 631
  */
632
-JitsiConference.prototype.addLocalWebRTCStream
632
+JitsiConference.prototype.addLocalStream
633 633
     = function (stream, callback, errorCallback, ssrcInfo, dontModifySources) {
634 634
     if(this.jingleSession) {
635 635
         this.jingleSession.addStream(
@@ -649,7 +649,7 @@ JitsiConference.prototype.addLocalWebRTCStream
649 649
  * @param {object} ssrcInfo object with information about the SSRCs associated
650 650
  * with the stream.
651 651
  */
652
-JitsiConference.prototype.removeLocalWebRTCStream
652
+JitsiConference.prototype.removeLocalStream
653 653
     = function (stream, callback, errorCallback, ssrcInfo) {
654 654
     if(this.jingleSession) {
655 655
         this.jingleSession.removeStream(
@@ -1021,7 +1021,7 @@ function (jingleSession, jingleOffer, now) {
1021 1021
             };
1022 1022
         }
1023 1023
         try {
1024
-            this.addLocalWebRTCStream(
1024
+            this.addLocalStream(
1025 1025
                 localTrack.getOriginalStream(), function () {}, function () {},
1026 1026
                 ssrcInfo, true /* don't modify SSRCs */);
1027 1027
         } catch(e) {

+ 2
- 2
modules/RTC/JitsiLocalTrack.js Ver fichero

@@ -370,7 +370,7 @@ JitsiLocalTrack.prototype._addStreamToConferenceAsUnmute = function () {
370 370
     var self = this;
371 371
 
372 372
     return new Promise(function(resolve, reject) {
373
-        self.conference.addLocalWebRTCStream(
373
+        self.conference.addLocalStream(
374 374
             self.stream,
375 375
             resolve,
376 376
             (error) => reject(new Error(error)),
@@ -396,7 +396,7 @@ function (successCallback, errorCallback) {
396 396
         return;
397 397
     }
398 398
 
399
-    this.conference.removeLocalWebRTCStream(
399
+    this.conference.removeLocalStream(
400 400
         this.stream,
401 401
         successCallback,
402 402
         (error) => errorCallback(new Error(error)),

Loading…
Cancelar
Guardar