WebRTC - help me understand a few concepts

I am new to WebRTC, actually just heard about it a few days ago, and I read a lot about it. However, I still have a few questions.

What do I need to learn about using WebRTC? For example: do I need a server, any libraries, etc.? I know that the new version of Chrome and Firefox supports WebRTC, but besides these two browsers, is there anything else that is needed?

What is the main purpose of WebRTC for practical use? Video chat? Audio chat? How about texting?

Is a WebRTC server required for any browser interaction with the browser? I saw some libraries, such as PeerJS, that do not explicitly mention any server ... so that you can connect two clients directly? There is also PeerServer, which supposedly helps brokerage relationships between PeerJS clients. Can I use WebRTC without such a server?

What are the most commonly used libraries for WebRTC?

What is a good starting point for anyone brand new to WebRTC? I would like to set up google-talk basic service, talk with one person.

Thank you very much.

+4
source share
2 answers

. ,

.

WebRTC :

  • sdp/ice/etc. ----. socket.io/websockets/xmpp/sip/XHR/etc.
  • ICE-, .. STUN / TURN; , UDP/TCP.
  • JavaScript / RTCWeb JavaScript API, .. RTCPeerConnection.

WebRTC . "", - // ; PSTN.

WebRTC DataChannel , -; , ..

+3

WebRTC? : , ..? , Chrome Firefox WebRTC, - , ?

WebRTC - JavaScript API -, .

2 :

  • . , - , Firefox, - , Chrome, . WebRTC . . . SDP ( config) SDP. HTTP apahe Websockets SDP. , , , , websockets HTTP/HTTPS.

  • , - , distanation NAT. , . TURN NAT.

, : 1) 2) TURN -

, -. WebSocket HTML5 SRTP TURN. webrtc.

: 1. . 2. -. 3. - JavaScript, , webrtc.

+2
source

All Articles