Browse Source

ref: remove double "l" from SignallingLayer

dev1
paweldomas 8 years ago
parent
commit
359e525cc2

+ 4
- 4
modules/RTC/RTC.js View File

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

+ 7
- 7
modules/RTC/TraceablePeerConnection.js View File

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

+ 1
- 1
modules/xmpp/JingleSessionPC.js View File

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

service/RTC/SignallingLayer.js → service/RTC/SignalingLayer.js View File

11
  * Interface used to expose the information carried over the signalling channel
11
  * Interface used to expose the information carried over the signalling channel
12
  * which is not available to the RTC module in the media SDP.
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
      * Obtains the endpoint ID for given SSRC.
19
      * Obtains the endpoint ID for given SSRC.

Loading…
Cancel
Save