WebRTC

2 min. read

WebRTC

Introduction

WebRTC allows you to create a Peer-to-Peer (P2P) connection between 2 or more devices.

Flow

Device 1: Creates an offer, by sending a session description protocol (SDP) to the signaling server

Device 2: Will send an SDP answer to the signaling server

Terminology

Network Address Translation (NAT)
Session Description Protocol (SDP)
Peer-to-Peer (P2P)
Interactive Connectivity Establishment (ICE)
ICE Candidates
Session Traversal Utilities for NAT (STUN)

Technical

RTCPeerConnection
localStream
remoteStream
MediaStream

References

https://www.html5rocks.com/en/tutorials/webrtc/basics/
https://github.com/anoek/webrtc-group-chat-example
https://blog.logrocket.com/get-a-basic-chat-application-working-with-webrtc/
https://tsh.io/blog/how-to-write-video-chat-app-using-webrtc-and-nodejs/
https://webrtc.github.io/samples/
https://www.tutorialspoint.com/webrtc/webrtc_voice_demo.htm
https://developer.okta.com/blog/2020/10/21/webrtc-videochat-javascript
https://www.pubnub.com/blog/building-a-webrtc-video-and-voice-chat-application/
https://www.sitepoint.com/webrtc-video-chat-application-simplewebrtc/
https://javascript.plainenglish.io/lets-build-a-video-chat-app-with-javascript-and-webrtc-de745072c38c
https://github.com/feross/simple-peer
https://github.com/janstuemmel/webrtc-voice-demo
https://github.com/TaoistKing/chatchat
https://github.com/avinoamMO/WebRTC-Chat
https://developer.mozilla.org/en-US/docs/Learn/Common_questions/set_up_a_local_testing_server
https://github.com/anoek/webrtc-group-chat-example
https://bloggeek.me/how-many-users-webrtc-call/
https://www.youtube.com/watch?v=0fWN_q4zAqs
https://www.youtube.com/watch?v=WmR9IMUD_CY
https://blog.logrocket.com/get-a-basic-chat-application-working-with-webrtc/
https://www.webrtc-experiment.com/chat-hangout/#15282526222244686
https://www.pubnub.com/blog/webrtc-group-video-chatting-basics/
https://www.dmcinfo.com/latest-thinking/blog/id/9852/multi-user-video-chat-with-webrtc
https://stackoverflow.com/questions/39169890/web-rtc-video-chat-with-many-users
https://xbsoftware.com/blog/how-we-made-webrtc-chat-for-3000-users/
https://www.nighthour.sg/articles/2020/building-a-peer-to-peer-groupchat-using-deno-and-webrtc.html