Update config

This commit is contained in:
Sergiu Toma 2021-02-18 17:01:50 +02:00
parent 092f68df81
commit b0d00f7a59
1 changed files with 65 additions and 18 deletions

View File

@ -6,11 +6,43 @@ const io = require("socket.io-client");
var socket, stream;
// var config = {
// iceServers: [{
// //urls: [ "stun:numb.viagenie.ca"
// urls: [ "stun:dev.linx.safemobile.com:19302" ]
// }, {
// //username: "claudiustancu@outlook.com",
// username: "sergiu",
// //credential: "Parola123",
// credential: "test123",
// urls: [
// // "turn:numb.viagenie.ca"
// "turn:dev.linx.safemobile.com:19302"
// ]
// }],
// //FOR CHROME
// rtcpMuxPolicy:"negotiate"
// }
var config = {
iceServers: [{
urls: [ "stun:18.185.97.230:3478" ]
}, {
username: "sergiu",
credential: "test123",
urls: [
"turn:18.185.97.230:3478"
]
}],
//FOR CHROME
rtcpMuxPolicy:"negotiate"
}
// var config = {
// iceServers: [{
// urls: [ "stun:dev.linx.safemobil.com:3478" ]
// }, {
// username: "sergiu ",
// username: "sergiu",
// credential: "test123",
// urls: [
// "turn:dev.linx.safemobil.com:3478"
@ -35,24 +67,39 @@ var socket, stream;
// rtcpMuxPolicy:"negotiate"
// }
var config = {
iceServers: [{
//urls: [ "stun:numb.viagenie.ca"
urls: [ "stun:dev.linx.safemobile.com" ]
}, {
//username: "claudiustancu@outlook.com",
username: "sergiu",
//credential: "Parola123",
credential: "test123",
urls: [
// "turn:numb.viagenie.ca"
"turn:dev.linx.safemobile.com"
]
}],
// var config = {
// iceServers: [{
// //urls: [ "stun:numb.viagenie.ca"
// urls: [ "stun:dev.linx.safemobile.com" ]
// }, {
// //username: "claudiustancu@outlook.com",
// username: "sergiu",
// //credential: "Parola123",
// credential: "test123",
// urls: [
// // "turn:numb.viagenie.ca"
// "turn:dev.linx.safemobile.com"
// ]
// }],
//FOR CHROME
rtcpMuxPolicy:"negotiate"
}
// //FOR CHROME
// rtcpMuxPolicy:"negotiate"
// }
// var config = {
// iceServers: [{
// urls: [ "stun:18.194.53.12:3478" ]
// }, {
// username: "omulpaianjen",
// credential: "peterparker",
// urls: [
// "turn:18.194.53.12:3478"
// ]
// }],
// //FOR CHROME
// rtcpMuxPolicy:"negotiate"
// }
var pc = new RTCPeerConnection(config)