|
@@ -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(
|