WebRTC Laboratory

Peer-to-peer browser connectivity, taken apart (connecting, calls, streaming, messaging, file transfer, and screen sharing), with deep-dive articles, live de...

CONNECTING CALLS STREAMING MESSAGING FILE TRANSFER SCREEN SHARING P2P

WebRTC opens a direct path between two browsers: audio, video, and data travel peer-to-peer instead of through a relay. This is the whole subject taken apart: six use-case topics, twenty-five deep-dive articles, live demos you can run, an API reference, and multiplayer games that need nothing but a peer connection. Everything here runs STUN-only, with no relay and no media server in the data path.

Start the tour → Browse all articles

Connecting

Explore →

How two browsers find each other and open a direct path: signaling, ICE, and NAT traversal. Every other topic sits on top of this one.

Browser Amedia & data Browser Bmedia & data Signaling Servermetadata exchange STUNnetwork discovery Direct SRTP / SCTP tunnel NO SERVER IN THE DATA PATH Offer / Answer IP discovery peer-to-peer data path signaling & discovery (setup only)

Calls

Explore →

One-to-one and group audio and video, from camera capture to negotiated media tracks and on-the-fly adaptation.

Streaming

Explore →

One-to-many broadcast over pure peer-to-peer: what it can do, and the honest wall where a server takes over.

Messaging & Data

Explore →

The RTCDataChannel for arbitrary peer-to-peer data, with reliable or fast delivery and your own wire protocol on top.

File transfer

Explore →

Sending files directly between browsers over a data channel: chunking, integrity, and multi-gigabyte transfers without exhausting memory.

Screen sharing

Explore →

Capturing a screen, window, or tab with getDisplayMedia, sharing its audio, and combining it with the camera.

See it run

All demos →

Minimal, single-purpose demos. Each runs entirely in your browser, peer-to-peer: open one, grant permission, watch the path.

Games

All games →

Multiplayer games that push the data channel, server-free. Share a link, play together; nothing routes through a server.

Reference & tools

API reference →

The JavaScript API behind it all, live protocol inspectors, and the external specs and libraries worth keeping open.