WebRTC Core Components Explained
Understand the main components of WebRTC: getUserMedia, RTCPeerConnection, and RTCDataChannel, and their functions.
WebRTC's Core Building Blocks
WebRTC rests on three JavaScript APIs: getUserMedia (camera/mic), RTCPeerConnection (the P2P link), and RTCDataChannel (arbitrary data).
Accessing Media with getUserMedia
getUserMedia() is your gateway to the user's camera and mic. It prompts for permission, then hands back a MediaStream with the audio and video tracks.
All lessons in this course
- What is Real-Time Communication?
- Overview of WebRTC Technology
- WebRTC Core Components Explained
- Transport Protocols: UDP vs TCP for Streaming