1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2025-06-27 20:22:16 +02:00

Make STUN server configurable

This commit is contained in:
Alexandre Iooss
2020-09-29 17:27:19 +02:00
parent 1c98754624
commit 95f4b81f01
6 changed files with 24 additions and 15 deletions

View File

@ -3,12 +3,7 @@ let peerConnection;
startPeerConnection = () => {
// Init peer connection
peerConnection = new RTCPeerConnection({
iceServers: [
{
// FIXME: let admin customize the stun server
urls: 'stun:stun.l.google.com:19302'
}
]
iceServers: [{ urls: stunServers }]
})
// On connection change, change indicator color
@ -80,6 +75,3 @@ startPeerConnection = () => {
}
}
}
// Start
startPeerConnection()