Only use one STUN server, in a desperate bid to speed up candidate gathering

This commit is contained in:
Marks Polakovs 2020-05-11 02:42:20 +02:00
parent ca25490e64
commit e81ebd02e6

View file

@ -142,18 +142,7 @@ export class WebRTCStreamer extends Streamer {
createPeerConnection(iceServers: RTCIceServer[]) {
this.pc = new RTCPeerConnection({
iceServers: [
{
urls: [
"stun:stun.l.google.com:19302",
"stun:stun1.l.google.com:19302",
"stun:stun2.l.google.com:19302",
"stun:stun3.l.google.com:19302",
"stun:stun4.l.google.com:19302",
],
},
...iceServers,
],
iceServers
});
this.pc.oniceconnectionstatechange = async (e) => {
if (!this.pc) {