Исправлена опечатка TURN
This commit is contained in:
@@ -90,17 +90,16 @@ export function CallProvider(props : CallProviderProps) {
|
||||
for(let i = 0; i < iceServers.length; i++){
|
||||
let server = iceServers[i];
|
||||
formattedIceServers.push({
|
||||
urls: "trun:" + server.urls + "?transport=udp",
|
||||
urls: "turn:" + server.urls + "?transport=udp",
|
||||
username: server.username,
|
||||
credential: server.credential
|
||||
});
|
||||
formattedIceServers.push({
|
||||
urls: "trun:" + server.urls + "?transport=tcp",
|
||||
urls: "turn:" + server.urls + "?transport=tcp",
|
||||
username: server.username,
|
||||
credential: server.credential
|
||||
});
|
||||
}
|
||||
console.info("ICE SERVERS RECEIVED: ", formattedIceServers);
|
||||
iceServersRef.current = formattedIceServers;
|
||||
info("Received ICE servers from server, count: " + formattedIceServers.length);
|
||||
}, []);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
export const SERVERS = [
|
||||
//'wss://cdn.rosetta-im.com',
|
||||
//'ws://10.211.55.2:3000',
|
||||
'ws://127.0.0.1:3000',
|
||||
'ws://192.168.6.82:3000',
|
||||
//'wss://wss.rosetta.im'
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user