diff --git a/examples/ice/turn/trickle_answer.html b/examples/ice/turn/trickle_answer.html index 90904aab2..0fd0f2d73 100644 --- a/examples/ice/turn/trickle_answer.html +++ b/examples/ice/turn/trickle_answer.html @@ -39,14 +39,7 @@ console.log("offer", offer.sdp); const peer = (rtc = new RTCPeerConnection({ - iceServers: [ - { - urls: "turn:relay.backups.cz:3478", - credential: "webrtc", - username: "webrtc", - }, - ], - iceTransportPolicy: "relay", + iceServers: [{ urls: "stun:stun.l.google.com:19302" }], })); peer.onicecandidate = ({ candidate }) => { if (candidate) { diff --git a/examples/ice/turn/trickle_offer.ts b/examples/ice/turn/trickle_offer.ts index a80d6c4c5..1c4da3db8 100644 --- a/examples/ice/turn/trickle_offer.ts +++ b/examples/ice/turn/trickle_offer.ts @@ -12,9 +12,9 @@ server.on("connection", async (socket) => { const pc = new RTCPeerConnection({ iceServers: [ { - urls: "turn:relay.backups.cz:3478", - credential: "webrtc", - username: "webrtc", + urls: "", + credential: "", + username: "", }, ], iceTransportPolicy: "relay", @@ -34,6 +34,7 @@ server.on("connection", async (socket) => { await pc.setLocalDescription(offer); const sdp = JSON.stringify(pc.localDescription); socket.send(sdp); + console.log("offer", sdp); socket.on("message", async (data: any) => { const msg = JSON.parse(data); @@ -41,6 +42,7 @@ server.on("connection", async (socket) => { await pc.addIceCandidate(msg); } else if (RTCSessionDescription.isThis(msg)) { await pc.setRemoteDescription(msg); + console.log("answer", msg); } }); });