STUN server tests
This commit is contained in:
parent
6a1de29267
commit
e573d57419
1 changed files with 13 additions and 14 deletions
|
@ -18,7 +18,7 @@ class ServerConnection {
|
||||||
clearTimeout(this._reconnectTimer);
|
clearTimeout(this._reconnectTimer);
|
||||||
}
|
}
|
||||||
|
|
||||||
_isConnected() {
|
_isConnected(){
|
||||||
return this._socket && this._socket.readyState === this._socket.OPEN;
|
return this._socket && this._socket.readyState === this._socket.OPEN;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -466,17 +466,16 @@ window.isRtcSupported = !!(window.RTCPeerConnection || window.mozRTCPeerConnecti
|
||||||
|
|
||||||
RTCPeer.config = {
|
RTCPeer.config = {
|
||||||
'iceServers': [{
|
'iceServers': [{
|
||||||
urls: 'stun:stun.stunprotocol.org:3478'
|
urls: 'stun:stun.stunprotocol.org:3478'
|
||||||
}, {
|
}, {
|
||||||
urls: 'stun:stun.l.google.com:19302'
|
urls: 'stun:stun.l.google.com:19302'
|
||||||
}, {
|
}, {
|
||||||
url: 'turn:192.158.29.39:3478?transport=tcp',
|
urls: 'turn:turn.bistri.com:80',
|
||||||
credential: 'JZEOEt2V3Qb0y27GRntt2u2PAYA=',
|
credential: 'homeo',
|
||||||
username: '28224511:1379330808'
|
username: 'homeo'
|
||||||
}, {
|
}, {
|
||||||
urls: 'turn:turn.anyfirewall.com:443?transport=tcp',
|
urls: 'turn:turn.anyfirewall.com:443?transport=tcp',
|
||||||
credential: 'webrtc',
|
credential: 'webrtc',
|
||||||
username: 'webrtc'
|
username: 'webrtc'
|
||||||
}
|
}]
|
||||||
]
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue