Ver código fonte

log: Log PC connection state changes.

release-8443
Boris Grozev 10 meses atrás
pai
commit
ca734afe43
1 arquivos alterados com 3 adições e 0 exclusões
  1. 3
    0
      modules/xmpp/JingleSessionPC.js

+ 3
- 0
modules/xmpp/JingleSessionPC.js Ver arquivo

@@ -1468,6 +1468,9 @@ export default class JingleSessionPC extends JingleSession {
1468 1468
         this.peerconnection.onconnectionstatechange = () => {
1469 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 1474
             switch (this.peerconnection.connectionState) {
1472 1475
             case 'failed':
1473 1476
                 // Since version 76 Chrome no longer switches ICE connection

Carregando…
Cancelar
Salvar