Files
Testing/include/videocall/dev/IceServersHandler.js

40 lines
1.1 KiB
JavaScript
Raw Permalink Normal View History

2026-11-17 16:15:01 -05:00
// IceServersHandler.js
var IceServersHandler = (function() {
function getIceServers(connection) {
// resiprocate: 3344+4433
// pions: 7575
var iceServers = [{
'urls': [
'stun:webrtcweb.com:7788'
],
'username': 'muazkh',
'credential': 'muazkh'
},
{
'urls': [
'turn:webrtcweb.com:7788', // coTURN 7788+8877
'turn:webrtcweb.com:8877',
'turn:webrtcweb.com:4455', // restund udp
],
'username': 'muazkh',
'credential': 'muazkh'
},
{
'urls': [
'stun:stun.l.google.com:19302',
'stun:stun1.l.google.com:19302',
'stun:stun2.l.google.com:19302',
'stun:stun.l.google.com:19302?transport=udp',
]
}
];
return iceServers;
}
return {
getIceServers: getIceServers
};
})();