Testing Out Your First Peer-to-Peer App

Now it’s time to test it all out. Reduce the size of the browser window you’ve been working in so there’s room to open a second just like it. Be sure to copy and paste the URL from the first window into the second, so you’re communicating over the same namespace on the signaling channel. Refresh both windows, grant permissions for the camera, and then hit Join Call in one window, then the other. Then get ready to see a whole lot of your own face on the screen.

images/PeerConnection/peer-connection-2up.png

If things aren’t working, don’t lose heart. Check your console for any errors and messages, including the ones from the calls to console.log that ...

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.