Browse Source

add turn server to default config

afrokick 5 years ago
parent
commit
7ddeedfd40
3 changed files with 4 additions and 1 deletions
  1. 0 0
      dist/peerjs.min.js
  2. 0 0
      dist/peerjs.min.js.map
  3. 4 1
      lib/util.ts

File diff suppressed because it is too large
+ 0 - 0
dist/peerjs.min.js


File diff suppressed because it is too large
+ 0 - 0
dist/peerjs.min.js.map


+ 4 - 1
lib/util.ts

@@ -2,7 +2,10 @@ import * as BinaryPack from "js-binarypack";
 import { RTCPeerConnection } from "./adapter";
 
 const DEFAULT_CONFIG = {
-  iceServers: [{ urls: "stun:stun.l.google.com:19302" }],
+  iceServers: [
+    { urls: "stun:stun.l.google.com:19302" },
+    { urls: "turn:0.peerjs.com:3478", username: "peerjs", credential: "peerjsp" }
+  ],
   sdpSemantics: "unified-plan"
 };
 

Some files were not shown because too many files changed in this diff