mdn / samples-server

MDN samples server; used for samples that can't be hosted in-place on MDN, plus back-end server-side code for samples that need it.
https://developer.mozilla.org/
Creative Commons Zero v1.0 Universal
957 stars 930 forks source link

What is the hostname for turns server?will it be chat servers address or we need to setup stun/turn server(or use default one eg: stun:stun.l.google.com:19302) #92

Open sainath-everest opened 4 years ago

sainath-everest commented 4 years ago
 myPeerConnection = new RTCPeerConnection({
    iceServers: [     // Information about ICE servers - Use your own!
      {
        urls: "turn:" + myHostname,  // A TURN server
        username: "webrtc",
        credential: "turnserver"
      }
    ]
  });

myHostname refers to chat server host url or we need to setup our own turn server(or can we use default stun server eg: eg: stun:stun.l.google.com:19302 )?And if use the this same process using react-native-webrtc will it work (i need this for react-native app)?