Skip to content

Commit

Permalink
Change to twilio stun
Browse files Browse the repository at this point in the history
  • Loading branch information
moritztng committed Sep 2, 2023
1 parent a9c0cb1 commit ed2d03e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
11 changes: 11 additions & 0 deletions cellular.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"folders": [
{
"path": "."
},
{
"path": "frontend"
}
],
"settings": {}
}
10 changes: 5 additions & 5 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ function connect(
messageCallback
) {
const iceServers = []
// if (!['localhost', '127.0.0.1'].includes(location.hostname)) {
// iceServers.push({
// urls: 'stun:stun.l.google.com:19302',
// })
// }
if (!['localhost', '127.0.0.1'].includes(location.hostname)) {
iceServers.push({
urls: 'stun:global.stun.twilio.com:3478',
})
}
const pc = new RTCPeerConnection({
sdpSemantics: 'unified-plan',
iceServers: iceServers,
Expand Down

0 comments on commit ed2d03e

Please sign in to comment.