Skip to main content

Posts

Showing posts with the label webrtc

RTCPeerConnection - How John and Finch actually connect

In my previous article, WebRTC - What the heck? , we met two shopkeeper farmers, John and Finch, who trade goods across a river using detailed letters (SDPs). If you haven't read it, I'd strongly recommend you read that first. I promised we'd get into the technicals. Here it is. But don't worry, no code. We're sticking with John and Finch to understand what really happens under the hood. The postal service - Signaling server In the first article, Finch sent his letter via a pigeon. But John and Finch can't just throw letters across the river and hope it lands. Someone has to carry the letter. That's the postal service. It doesn't read the letter. It doesn't care what's inside. It just delivers. In WebRTC, this is the Signaling Server . It carries the SDP offer from one client to the other and brings back the SDP answer. It could be a WebSocket server, an HTTP server, or anything that can pass a message between two endpoints. WebRTC doesn...

WebRTC - What the heck?

Over the past few weeks, I happened to work on stuff that enabled me to understand what WebRTC is and how useful it is.  The full form? Web R eal- T ime C ommunication The history It's first release was by 2011. If you want to know more, well, please read the wikipedia . WebRTC  has been a boon to web developers who want to build streaming applications or video calling applications. As you move downward, you'll just may be understand how WebRTC works but nothing technicals.  The story Let's begin with a short story. Long long ago, so long ago, nobody knew how long ago, there lived two shop keeper farmers John & Finch. It was that old point in time when barter system was a thing and money wasn't invented.  These shopkeepers lived in different cities across a river and the cities were connected by a rock solid bridge. Like how the golden gate connects the San Francisco city and the Marin County. Finch is a very private person and takes hard time to trust people. J...