浏览代码

Add logging for ICE failed

RobinLinus 6 年之前
父节点
当前提交
ca9a5566af
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      client/scripts/network.js

+ 1 - 0
client/scripts/network.js

@@ -244,6 +244,7 @@ class RTCPeer extends Peer {
         this._conn = new RTCPeerConnection(RTCPeer.config);
         this._conn.onicecandidate = e => this._onIceCandidate(e);
         this._conn.onconnectionstatechange = e => this._onConnectionStateChange(e);
+        this._conn.oniceconnectionstatechange = e => console.log(e);
     }
 
     _openChannel() {