The first step of any WebRTC application is to create an RTCPeerConnection
. Creating a successful RTCPeerConnection
will require an understanding of the inner workings of how a browser creates peer connections. Firstly, in this chapter, we will lay the groundwork to understand the internals of WebRTC. Then we will utilize this knowledge to create a basic WebRTC video chat application.
In this chapter, we will cover the following topics:
Understanding UDP transport and real-time transfer
Signaling and negotiating with other users locally
Finding other users on the Web and NAT traversal
Creating an
RTCPeerConnection