Browse Source

Merge pull request #748 from alxnull/patch-1

Update ICE servers default in docs
Alex Sosnovskiy 4 years ago
parent
commit
2b81b96c3f
2 changed files with 2 additions and 2 deletions
  1. 1 1
      docs/api.json
  2. 1 1
      docs/index.html

+ 1 - 1
docs/api.json

@@ -49,7 +49,7 @@
           {
             "name": "config",
             "type": "object",
-            "description": "Configuration hash passed to RTCPeerConnection. This hash contains any custom ICE/TURN server configuration. Defaults to <code>{ 'iceServers': [{ 'urls': 'stun:stun.l.google.com:19302' }], 'sdpSemantics': 'unified-plan' }</code>"
+            "description": "Configuration hash passed to RTCPeerConnection. This hash contains any custom ICE/TURN server configuration. Defaults to <code>{ 'iceServers': [{ 'urls': 'stun:stun.l.google.com:19302' }, { 'urls': 'turn:0.peerjs.com:3478', username: 'peerjs', credential: 'peerjsp' }], 'sdpSemantics': 'unified-plan' }</code>"
           },
           {
             "name": "debug",

+ 1 - 1
docs/index.html

@@ -260,7 +260,7 @@ var peer = new Peer({
                   href="#peer-options-config">config</a><span class="tag type object">object</span></span>
               <p class="description">Configuration hash passed to RTCPeerConnection. This hash contains any custom
                 ICE/TURN server configuration. Defaults to
-                <code>{ 'iceServers': [{ 'urls': 'stun:stun.l.google.com:19302' }], 'sdpSemantics': 'unified-plan' }</code>
+                <code>{ 'iceServers': [{ 'urls': 'stun:stun.l.google.com:19302' }, { 'urls': 'turn:0.peerjs.com:3478', username: 'peerjs', credential: 'peerjsp' }], 'sdpSemantics': 'unified-plan' }</code>
               </p>
             </div>
             <div class="child " id="peer-options-debug"><span class="name"><a href="#peer-options-debug">debug</a><span