Update client
This commit is contained in:
parent
edede51721
commit
bbc19ad9ec
53
src/App.js
53
src/App.js
@ -56,7 +56,7 @@ class App extends Component {
|
|||||||
super();
|
super();
|
||||||
|
|
||||||
this.state = {
|
this.state = {
|
||||||
login: 'AIRWizard-adi',
|
login: 'lx-adi',
|
||||||
password: 'Safemobile123',
|
password: 'Safemobile123',
|
||||||
user: null,
|
user: null,
|
||||||
hubStatus: 0, // 0 uninitialized | 1 connecting | 2 connected | 3 connection error
|
hubStatus: 0, // 0 uninitialized | 1 connecting | 2 connected | 3 connection error
|
||||||
@ -68,8 +68,8 @@ class App extends Component {
|
|||||||
// rtcPeerConnection: null,
|
// rtcPeerConnection: null,
|
||||||
stunUrl: 'stun:10.120.1.134:19302',
|
stunUrl: 'stun:10.120.1.134:19302',
|
||||||
turnUrl: 'turn:10.120.1.134:19302',
|
turnUrl: 'turn:10.120.1.134:19302',
|
||||||
turnUsername: 'safemobile',
|
turnUsername: 'sergiu',
|
||||||
turnCredential: 'Safemobile123'
|
turnCredential: 'test123'
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -265,38 +265,6 @@ class App extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
calculateIceServers = () => {
|
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 = {
|
const obj = {
|
||||||
"iceServers": [
|
"iceServers": [
|
||||||
{
|
{
|
||||||
@ -311,18 +279,7 @@ class App extends Component {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
// const obj = {
|
console.log('calculateIceServers-----------------------', obj);
|
||||||
// "iceServers": [
|
|
||||||
// {
|
|
||||||
// "urls":[this.state.turnUrl],
|
|
||||||
// "username":this.state.turnUsername,
|
|
||||||
// "credential":this.state.turnCredential
|
|
||||||
// }
|
|
||||||
// ],
|
|
||||||
// "iceTransportPolicy":"relay",
|
|
||||||
// "iceCandidatePoolSize":"3"
|
|
||||||
// };
|
|
||||||
console.log('obj-----------------------', obj);
|
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -406,7 +363,7 @@ class App extends Component {
|
|||||||
return (
|
return (
|
||||||
<div className="App">
|
<div className="App">
|
||||||
|
|
||||||
<h1>WebRTC Client 0.7</h1>
|
<h1>WebRTC Client 0.8</h1>
|
||||||
<br></br>
|
<br></br>
|
||||||
|
|
||||||
<h2><u>STUN and TURN servers</u></h2>
|
<h2><u>STUN and TURN servers</u></h2>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user