mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-20 15:06:15 -04:00
Add logging for ICE failed
This commit is contained in:
parent
b65dab968e
commit
ab52a58fc5
1 changed files with 8 additions and 2 deletions
|
@ -306,8 +306,14 @@ class RTCPeer extends Peer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_onIceConnectionStateChange(){
|
_onIceConnectionStateChange() {
|
||||||
console.log('IceConnectionStateChange',this._conn.iceConnectionState);
|
switch (this._conn.iceConnectionState) {
|
||||||
|
case 'failed':
|
||||||
|
console.error('ICE Gathering failed');
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
console.log('ICE Gathering', this._conn.iceConnectionState);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_onError(error) {
|
_onError(error) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue