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