Only use one STUN server, in a desperate bid to speed up candidate gathering
This commit is contained in:
parent
ca25490e64
commit
e81ebd02e6
1 changed files with 1 additions and 12 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue