Chapter 3Establishing a Peer-to-Peer Connection
In the previous chapter, you constructed the basic interface for a video-call app. You also explored and wrote a number of placeholder callback functions to prepare the way for triggering and responding to the signaling channel’s events.
In this chapter, you’ll build on that work to enable two peers to set up a WebRTC connection and stream video directly to each other. At first, of course, the two peers will just be you and yourself with two different browser windows opened to the same namespace. To prevent skull-shattering feedback while you test things out, you’ll start off with the audio disabled.
The goal is to to work systematically and get some foundational WebRTC code working as quickly ...
Get Programming WebRTC now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.