commit ab52a58fc54c9a8579524e60b54dc91797b529e2 parent b65dab968e7cfc4d79f23263e62568c36d354ae0 Author: RobinLinus <robinlinus@users.noreply.github.com> Date: Tue, 25 Sep 2018 18:58:52 +0200 Add logging for ICE failed Diffstat:
M | client/scripts/network.js | | | 10 | ++++++++-- |
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/client/scripts/network.js b/client/scripts/network.js @@ -306,8 +306,14 @@ class RTCPeer extends Peer { } } - _onIceConnectionStateChange(){ - console.log('IceConnectionStateChange',this._conn.iceConnectionState); + _onIceConnectionStateChange() { + switch (this._conn.iceConnectionState) { + case 'failed': + console.error('ICE Gathering failed'); + break; + default: + console.log('ICE Gathering', this._conn.iceConnectionState); + } } _onError(error) {