소스 검색

Merge pull request #748 from alxnull/patch-1

Update ICE servers default in docs
Alex Sosnovskiy 4 년 전
부모
커밋
2b81b96c3f
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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