Browse Source

log: Log PC connection state changes.

release-8443
Boris Grozev 8 months ago
parent
commit
ca734afe43
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      modules/xmpp/JingleSessionPC.js

+ 3
- 0
modules/xmpp/JingleSessionPC.js View File

1468
         this.peerconnection.onconnectionstatechange = () => {
1468
         this.peerconnection.onconnectionstatechange = () => {
1469
             const icestate = this.peerconnection.iceConnectionState;
1469
             const icestate = this.peerconnection.iceConnectionState;
1470
 
1470
 
1471
+            logger.log(`(TIME) ${this.isP2P ? 'P2P' : 'JVB'} PC state is now ${this.peerconnection.connectionState} `
1472
+                + `(ICE state ${this.peerconnection.iceConnectionState}):\t`, window.performance.now());
1473
+
1471
             switch (this.peerconnection.connectionState) {
1474
             switch (this.peerconnection.connectionState) {
1472
             case 'failed':
1475
             case 'failed':
1473
                 // Since version 76 Chrome no longer switches ICE connection
1476
                 // Since version 76 Chrome no longer switches ICE connection

Loading…
Cancel
Save