1
0

Audio is working. Local TURN server still not working -- could need TLS?

Signed-off-by: James Ketrenos <james_eikona@ketrenos.com>
This commit is contained in:
James Ketrenos 2022-03-14 19:45:40 -07:00
parent 221dd0e726
commit dee8cb684b

View File

@ -80,16 +80,32 @@ const MediaAgent = () => {
offerToReceiveAudio: true, offerToReceiveAudio: true,
offerToReceiveVideo: false offerToReceiveVideo: false
}, },
iceServers: [ { iceServers: [
/* urls: "stun:stun.l.google.com:19302" }, { /*
urls: "stun:stun.stunprotocol.org:3478" }, { */ { urls: "stun:stun.l.google.com:19302" },
// urls: "turn:ketrenos.com:3478", { urls: "stun:stun.stunprotocol.org:3478" },
// username: "ketra", */
// credential: "ketran" /*
{
urls: "turn:ketrenos.com:3478",
username: "ketra",
credential: "ketran"
},
*/
/*{
urls: "turn:ketrenos.com:3478?transport=tcp",
username: "ketra",
credential: "ketran"
},
*/
{
urls: "turn:numb.viagenie.ca", urls: "turn:numb.viagenie.ca",
username: "james_viagenie@ketrenos.com", username: "james_viagenie@ketrenos.com",
credential: "1!viagenie" credential: "1!viagenie"
} ] }
]
}, { }, {
/* this will no longer be needed by chrome /* this will no longer be needed by chrome
* eventually (supposedly), but is necessary * eventually (supposedly), but is necessary
@ -117,7 +133,7 @@ const MediaAgent = () => {
connection.onicecandidate = (event) => { connection.onicecandidate = (event) => {
if (!event.candidate) { if (!event.candidate) {
console.error(`media-agent - icecanditate - gathering is complete: ${connection.connectinoState}`); console.error(`media-agent - icecanditate - gathering is complete: ${connection.connectionState}`);
return; return;
} }
/* If a srflx candidate was found, notify that the STUN server works! */ /* If a srflx candidate was found, notify that the STUN server works! */