瀏覽代碼

log: Log PC connection state changes.

release-8443
Boris Grozev 8 月之前
父節點
當前提交
ca734afe43
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. 3
    0
      modules/xmpp/JingleSessionPC.js

+ 3
- 0
modules/xmpp/JingleSessionPC.js 查看文件

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

Loading…
取消
儲存