Просмотр исходного кода

ref: remove double "l" from SignallingLayer

dev1
paweldomas 8 лет назад
Родитель
Сommit
359e525cc2

+ 4
- 4
modules/RTC/RTC.js Просмотреть файл

@@ -207,7 +207,7 @@ export default class RTC extends Listenable {
207 207
 
208 208
     /**
209 209
      * Creates new <tt>TraceablePeerConnection</tt>
210
-     * @param {SignallingLayer} signalling the signalling layer that will
210
+     * @param {SignalingLayer} signaling the signaling layer that will
211 211
      * provide information about the media or participants which is not carried
212 212
      * over SDP.
213 213
      * @param {Object} iceConfig an object describing the ICE config like
@@ -220,12 +220,12 @@ export default class RTC extends Listenable {
220 220
      * preferred over other video codecs.
221 221
      * @return {TraceablePeerConnection}
222 222
      */
223
-    createPeerConnection (signalling, iceConfig, options) {
223
+    createPeerConnection (signaling, iceConfig, options) {
224 224
         const newConnection
225 225
             = new TraceablePeerConnection(
226 226
                 this,
227 227
                 this.peerConnectionIdCounter,
228
-                signalling, iceConfig, RTC.getPCConstraints(), options);
228
+                signaling, iceConfig, RTC.getPCConstraints(), options);
229 229
 
230 230
         this.peerConnections.set(newConnection.id, newConnection);
231 231
         this.peerConnectionIdCounter += 1;
@@ -381,7 +381,7 @@ export default class RTC extends Listenable {
381 381
 
382 382
     /**
383 383
      * Initializes a new JitsiRemoteTrack instance with the data provided by
384
-     * the signalling layer and SDP.
384
+     * the signaling layer and SDP.
385 385
      *
386 386
      * @param {string} ownerEndpointId
387 387
      * @param {MediaStream} stream

+ 7
- 7
modules/RTC/TraceablePeerConnection.js Просмотреть файл

@@ -21,7 +21,7 @@ var SIMULCAST_LAYERS = 3;
21 21
  *
22 22
  * @param {RTC} rtc the instance of <tt>RTC</tt> service
23 23
  * @param {number} id the peer connection id assigned by the parent RTC module.
24
- * @param {SignallingLayer} signallingLayer the signalling layer instance
24
+ * @param {SignalingLayer} signalingLayer the signaling layer instance
25 25
  * @param {object} ice_config WebRTC 'PeerConnection' ICE config
26 26
  * @param {object} constraints WebRTC 'PeerConnection' constraints
27 27
  * @param {object} options <tt>TracablePeerConnection</tt> config options.
@@ -38,7 +38,7 @@ var SIMULCAST_LAYERS = 3;
38 38
  *
39 39
  * @constructor
40 40
  */
41
-function TraceablePeerConnection(rtc, id, signallingLayer, ice_config,
41
+function TraceablePeerConnection(rtc, id, signalingLayer, ice_config,
42 42
                                  constraints, options) {
43 43
     var self = this;
44 44
     /**
@@ -53,10 +53,10 @@ function TraceablePeerConnection(rtc, id, signallingLayer, ice_config,
53 53
      */
54 54
     this.id = id;
55 55
     /**
56
-     * The signalling layer which operates this peer connection.
57
-     * @type {SignallingLayer}
56
+     * The signaling layer which operates this peer connection.
57
+     * @type {SignalingLayer}
58 58
      */
59
-    this.signallingLayer = signallingLayer;
59
+    this.signalingLayer = signalingLayer;
60 60
     this.options = options;
61 61
     var RTCPeerConnectionType = null;
62 62
     if (RTCBrowserType.isFirefox()) {
@@ -299,7 +299,7 @@ TraceablePeerConnection.prototype._remoteTrackAdded = function (stream, track) {
299 299
     // FIXME the length of ssrcLines[0] not verified, but it will fail
300 300
     // with global error handler anyway
301 301
     let trackSsrc = ssrcLines[0].substring(7).split(' ')[0];
302
-    const ownerEndpointId = this.signallingLayer.getSSRCOwner(trackSsrc);
302
+    const ownerEndpointId = this.signalingLayer.getSSRCOwner(trackSsrc);
303 303
 
304 304
     if (!ownerEndpointId) {
305 305
         GlobalOnErrorHandler.callErrorHandler(
@@ -314,7 +314,7 @@ TraceablePeerConnection.prototype._remoteTrackAdded = function (stream, track) {
314 314
     logger.log('associated ssrc', ownerEndpointId, trackSsrc);
315 315
 
316 316
     const peerMediaInfo
317
-        = this.signallingLayer.getPeerMediaInfo(ownerEndpointId, mediaType);
317
+        = this.signalingLayer.getPeerMediaInfo(ownerEndpointId, mediaType);
318 318
 
319 319
     if (!peerMediaInfo) {
320 320
         GlobalOnErrorHandler.callErrorHandler(

+ 1
- 1
modules/xmpp/JingleSessionPC.js Просмотреть файл

@@ -43,7 +43,7 @@ var IQ_TIMEOUT = 10000;
43 43
  *
44 44
  * @constructor
45 45
  *
46
- * @implements {SignallingLayer}
46
+ * @implements {SignalingLayer}
47 47
  */
48 48
 function JingleSessionPC(me, sid, peerjid, connection,
49 49
                          media_constraints, ice_config, options) {

service/RTC/SignallingLayer.js → service/RTC/SignalingLayer.js Просмотреть файл

@@ -11,9 +11,9 @@
11 11
  * Interface used to expose the information carried over the signalling channel
12 12
  * which is not available to the RTC module in the media SDP.
13 13
  *
14
- * @interface SignallingLayer
14
+ * @interface SignalingLayer
15 15
  */
16
-export default class SignallingLayer {
16
+export default class SignalingLayer {
17 17
 
18 18
     /**
19 19
      * Obtains the endpoint ID for given SSRC.

Загрузка…
Отмена
Сохранить