Update callId update

This commit is contained in:
Sergiu Toma 2021-02-17 14:01:18 +02:00
parent 536642ad05
commit 20fd681242
1 changed files with 31 additions and 12 deletions

View File

@ -20,19 +20,38 @@ var socket, stream;
// rtcpMuxPolicy:"negotiate" // rtcpMuxPolicy:"negotiate"
// } // }
var config = { // var config = {
iceServers: [{ // iceServers: [{
urls: [ "stun:numb.viagenie.ca" ] // urls: [ "stun:numb.viagenie.ca" ]
}, { // }, {
username: "claudiustancu@outlook.com", // username: "claudiustancu@outlook.com",
credential: "Parola123", // credential: "Parola123",
urls: [ // urls: [
"turn:numb.viagenie.ca" // "turn:numb.viagenie.ca"
] // ]
}], // }],
//FOR CHROME // //FOR CHROME
rtcpMuxPolicy:"negotiate" // rtcpMuxPolicy:"negotiate"
// }
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 pc = new RTCPeerConnection(config) var pc = new RTCPeerConnection(config)