From bbc19ad9ec7af244758f113da6974b32a0074630 Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Fri, 29 Jan 2021 11:27:56 +0200 Subject: [PATCH] Update client --- src/App.js | 53 +++++------------------------------------------------ 1 file changed, 5 insertions(+), 48 deletions(-) diff --git a/src/App.js b/src/App.js index 9a615a4..705145b 100644 --- a/src/App.js +++ b/src/App.js @@ -56,7 +56,7 @@ class App extends Component { super(); this.state = { - login: 'AIRWizard-adi', + login: 'lx-adi', password: 'Safemobile123', user: null, hubStatus: 0, // 0 uninitialized | 1 connecting | 2 connected | 3 connection error @@ -68,8 +68,8 @@ class App extends Component { // rtcPeerConnection: null, stunUrl: 'stun:10.120.1.134:19302', turnUrl: 'turn:10.120.1.134:19302', - turnUsername: 'safemobile', - turnCredential: 'Safemobile123' + turnUsername: 'sergiu', + turnCredential: 'test123' }; } @@ -265,38 +265,6 @@ class App extends Component { } calculateIceServers = () => { - // const obj = { - // "iceServers": [ - // { - // "urls":[this.state.stunUrl], - // "username":"safemobile", - // "credential":"Safemobile123" - // }, - // { - // "urls":[this.state.turnUrl], - // "username":this.state.turnUsername, - // "credential":this.state.turnCredential - // } - // ], - // "iceTransportPolicy":"all", - // "iceCandidatePoolSize":"0" - // }; - // const obj = { - // "iceServers": [ - // { - // "urls": "stun:dev.linx.safemobile.com:19302", - // "username":"", - // "credential":"" - // } - // ], - // }; - - // { - // "urls": "turn:dev.linx.safemobile.com:19302?transport=tcp", - // "username": "sergiu", - // "credential": "test123" - // }, - const obj = { "iceServers": [ { @@ -311,18 +279,7 @@ class App extends Component { } ] }; - // const obj = { - // "iceServers": [ - // { - // "urls":[this.state.turnUrl], - // "username":this.state.turnUsername, - // "credential":this.state.turnCredential - // } - // ], - // "iceTransportPolicy":"relay", - // "iceCandidatePoolSize":"3" - // }; - console.log('obj-----------------------', obj); + console.log('calculateIceServers-----------------------', obj); return obj; } @@ -406,7 +363,7 @@ class App extends Component { return (
-

WebRTC Client 0.7

+

WebRTC Client 0.8



STUN and TURN servers