|
@@ -453,10 +453,7 @@ export default class JingleSessionPC extends JingleSession {
|
453
|
453
|
`ice.state.${this.peerconnection.iceConnectionState}`]
|
454
|
454
|
= now;
|
455
|
455
|
}
|
456
|
|
- logger.log(
|
457
|
|
- `(TIME) ICE ${this.peerconnection.iceConnectionState}`
|
458
|
|
- + ` P2P? ${this.isP2P}:\t`,
|
459
|
|
- now);
|
|
456
|
+ logger.log(`(TIME) ICE ${this.peerconnection.iceConnectionState} ${this.isP2P ? 'P2P' : 'JVB'}:\t`, now);
|
460
|
457
|
|
461
|
458
|
Statistics.sendAnalytics(
|
462
|
459
|
ICE_STATE_CHANGED,
|
|
@@ -793,8 +790,7 @@ export default class JingleSessionPC extends JingleSession {
|
793
|
790
|
});
|
794
|
791
|
|
795
|
792
|
if (!iceCandidates.length) {
|
796
|
|
- logger.error(
|
797
|
|
- 'No ICE candidates to add ?', elem[0] && elem[0].outerHTML);
|
|
793
|
+ logger.error('No ICE candidates to add ?', elem[0] && elem[0].outerHTML);
|
798
|
794
|
|
799
|
795
|
return;
|
800
|
796
|
}
|
|
@@ -815,8 +811,7 @@ export default class JingleSessionPC extends JingleSession {
|
815
|
811
|
logger.debug(`ICE candidates task finished on ${this}`);
|
816
|
812
|
};
|
817
|
813
|
|
818
|
|
- logger.debug(
|
819
|
|
- `Queued add (${iceCandidates.length}) ICE candidates task...`);
|
|
814
|
+ logger.debug(`Queued add (${iceCandidates.length}) ICE candidates task...`);
|
820
|
815
|
this.modificationQueue.push(workFunction);
|
821
|
816
|
}
|
822
|
817
|
|
|
@@ -845,9 +840,7 @@ export default class JingleSessionPC extends JingleSession {
|
845
|
840
|
|
846
|
841
|
if (owner && owner.length) {
|
847
|
842
|
if (isNaN(ssrc) || ssrc < 0) {
|
848
|
|
- logger.warn(
|
849
|
|
- `Invalid SSRC ${ssrc} value received`
|
850
|
|
- + ` for ${owner}`);
|
|
843
|
+ logger.warn(`Invalid SSRC ${ssrc} value received for ${owner}`);
|
851
|
844
|
} else {
|
852
|
845
|
this.signalingLayer.setSSRCOwner(
|
853
|
846
|
ssrc,
|
|
@@ -868,8 +861,7 @@ export default class JingleSessionPC extends JingleSession {
|
868
|
861
|
if (this.peerconnection) {
|
869
|
862
|
this.peerconnection.generateRecvonlySsrc();
|
870
|
863
|
} else {
|
871
|
|
- logger.error(
|
872
|
|
- 'Unable to generate recvonly SSRC - no peerconnection');
|
|
864
|
+ logger.error('Unable to generate recvonly SSRC - no peerconnection');
|
873
|
865
|
}
|
874
|
866
|
}
|
875
|
867
|
|
|
@@ -1617,8 +1609,7 @@ export default class JingleSessionPC extends JingleSession {
|
1617
|
1609
|
const ssrc = $(this).attr('ssrc');
|
1618
|
1610
|
|
1619
|
1611
|
if (currentRemoteSdp.containsSSRC(ssrc)) {
|
1620
|
|
- logger.warn(
|
1621
|
|
- `Source-add request for existing SSRC: ${ssrc}`);
|
|
1612
|
+ logger.warn(`Source-add request for existing SSRC: ${ssrc}`);
|
1622
|
1613
|
|
1623
|
1614
|
return;
|
1624
|
1615
|
}
|
|
@@ -1739,12 +1730,8 @@ export default class JingleSessionPC extends JingleSession {
|
1739
|
1730
|
}
|
1740
|
1731
|
|
1741
|
1732
|
logger.log(`Processing ${logPrefix}`);
|
1742
|
|
- logger.log(
|
1743
|
|
- 'ICE connection state: ',
|
1744
|
|
- this.peerconnection.iceConnectionState);
|
1745
|
1733
|
|
1746
|
|
- const oldLocalSdp
|
1747
|
|
- = new SDP(this.peerconnection.localDescription.sdp);
|
|
1734
|
+ const oldLocalSdp = new SDP(this.peerconnection.localDescription.sdp);
|
1748
|
1735
|
const sdp = new SDP(this.peerconnection.remoteDescription.sdp);
|
1749
|
1736
|
const addOrRemoveSsrcInfo
|
1750
|
1737
|
= isAdd
|
|
@@ -1760,8 +1747,7 @@ export default class JingleSessionPC extends JingleSession {
|
1760
|
1747
|
const newLocalSdp
|
1761
|
1748
|
= new SDP(this.peerconnection.localDescription.sdp);
|
1762
|
1749
|
|
1763
|
|
- logger.log(
|
1764
|
|
- `${logPrefix} - OK, SDPs: `, oldLocalSdp, newLocalSdp);
|
|
1750
|
+ logger.log(`${logPrefix} - OK`);
|
1765
|
1751
|
this.notifyMySSRCUpdate(oldLocalSdp, newLocalSdp);
|
1766
|
1752
|
finishedCallback();
|
1767
|
1753
|
}, error => {
|
|
@@ -1940,8 +1926,7 @@ export default class JingleSessionPC extends JingleSession {
|
1940
|
1926
|
|
1941
|
1927
|
return this.peerconnection.setLocalDescription(offer)
|
1942
|
1928
|
.then(() => {
|
1943
|
|
- logger.debug(
|
1944
|
|
- 'Renegotiate: setting remote description');
|
|
1929
|
+ logger.debug('Renegotiate: setting remote description');
|
1945
|
1930
|
|
1946
|
1931
|
// eslint-disable-next-line max-len
|
1947
|
1932
|
return this.peerconnection.setRemoteDescription(remoteDescription);
|
|
@@ -2154,9 +2139,7 @@ export default class JingleSessionPC extends JingleSession {
|
2154
|
2139
|
const addedMedia = sdpDiff.getNewMedia();
|
2155
|
2140
|
|
2156
|
2141
|
if (Object.keys(addedMedia).length) {
|
2157
|
|
- logger.error(
|
2158
|
|
- `${this} - some SSRC were added on ${operationName}`,
|
2159
|
|
- addedMedia);
|
|
2142
|
+ logger.error(`${this} - some SSRC were added on ${operationName}`, addedMedia);
|
2160
|
2143
|
|
2161
|
2144
|
return false;
|
2162
|
2145
|
}
|
|
@@ -2165,9 +2148,7 @@ export default class JingleSessionPC extends JingleSession {
|
2165
|
2148
|
const removedMedia = sdpDiff.getNewMedia();
|
2166
|
2149
|
|
2167
|
2150
|
if (Object.keys(removedMedia).length) {
|
2168
|
|
- logger.error(
|
2169
|
|
- `${this} - some SSRCs were removed on ${operationName}`,
|
2170
|
|
- removedMedia);
|
|
2151
|
+ logger.error(`${this} - some SSRCs were removed on ${operationName}`, removedMedia);
|
2171
|
2152
|
|
2172
|
2153
|
return false;
|
2173
|
2154
|
}
|
|
@@ -2432,8 +2413,7 @@ export default class JingleSessionPC extends JingleSession {
|
2432
|
2413
|
|| (remoteVideoSenders === 'responder' && !this.isInitiator);
|
2433
|
2414
|
|
2434
|
2415
|
if (isRemoteVideoActive !== this._remoteVideoActive) {
|
2435
|
|
- logger.debug(
|
2436
|
|
- `${this} new remote video active: ${isRemoteVideoActive}`);
|
|
2416
|
+ logger.debug(`${this} new remote video active: ${isRemoteVideoActive}`);
|
2437
|
2417
|
this._remoteVideoActive = isRemoteVideoActive;
|
2438
|
2418
|
}
|
2439
|
2419
|
|
|
@@ -2627,8 +2607,7 @@ export default class JingleSessionPC extends JingleSession {
|
2627
|
2607
|
* @return {string}
|
2628
|
2608
|
*/
|
2629
|
2609
|
toString() {
|
2630
|
|
- return `JingleSessionPC[p2p=${this.isP2P},`
|
2631
|
|
- + `initiator=${this.isInitiator},sid=${this.sid}]`;
|
|
2610
|
+ return `JingleSessionPC[${this.isP2P ? 'P2P' : 'JVB'},initiator=${this.isInitiator},sid=${this.sid}]`;
|
2632
|
2611
|
}
|
2633
|
2612
|
|
2634
|
2613
|
/**
|