WebRTC - help me understand a few concepts

前端 未结 2 698
粉色の甜心
粉色の甜心 2020-12-30 16:22

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

What do I need to explore the u

2条回答
  •  囚心锁ツ
    2020-12-30 17:03

    You can find many docs here E.g. this one, this one and this one!

    You can find a few libraries here.

    A simple multi-user WebRTC app needs following things:

    1. Signalling server to exchange sdp/ice/etc. ---- e.g. socket.io/websockets/xmpp/sip/XHR/etc.
    2. ICE server i.e. STUN and/or TURN; to make sure Firewalls doesn't block UDP/TCP ports
    3. JavaScript app to access/invoke RTCWeb JavaScript API i.e. RTCPeerConnection.

    It just takes a few minutes to setup WebRTC peer-to-peer connection. You can setup peer-to-server connections as well where media-servers can be used to transcode/record/merge streams; or to relay to PSTN networks.

    WebRTC DataChannels can be used for gaming, webpage synchronizing; fetching static contents, peer-to-peer or peer-to-server data transmission, etc.

提交回复
热议问题