WebRTC deployment guides
Field notes from building and operating a Pion SFU, browser publisher and self-hosted TURN deployment. Each guide starts with the symptom and narrows the cause before proposing a fix.
What actually breaks when you build a WebRTC SFU in Go
Nine failures that cost real time while building a Pion v4 SFU: an API that moved, an SSRC that changed meaning, a signaling socket a proxy reaped, and the black-rectangle bugs that are not media bugs at all.
Read the pitfalls guide ->WebRTC works on your laptop. Here is what breaks when you put it on a server.
Signaling and media take different paths. What breaks when a working laptop demo moves to a cloud VM: candidates that lie, UDP that a firewall drops, and a reverse proxy that reaps idle sockets.
Read the deployment guide ->What breaks when you self-host a TURN server (coturn, symptom, cause, fix)
Symptom, cause and fix for the coturn failures that pass every "is it running?" check and still produce no video, plus how to tell whether TURN is your problem at all.
Read the relay guide ->Remote video support that survives a technician's phone network
Field-assist video that works on office Wi-Fi and dies in the field, split into its four causes: no relay candidate behind carrier NAT, a dead candidate pair after a network handover, a private address in SDP, and a signaling socket a reverse proxy reaped.
Read the field-assist guide ->A frozen video tile and a working ICE state: the three-tier recovery ladder
A recovery ladder for the tile that says connected while the picture is frozen: detect on frames rather than ICE state, escalate from ICE restart to a full rejoin, and guard the socket with an epoch counter.
Read the recovery guide ->One camera, many viewers: the fan-out details that decide whether viewer #2 works
The five decisions the single-viewer demo hides: one negotiation per viewer, keyframe requests for late joiners, RTCP relayed upstream with the publisher's SSRC, and batched offers instead of one per track.
Read the fan-out guide ->Why ReplaceTrack succeeds but video never reaches the second SFU
Separate a successful local binding from a negotiated, decodable video path. Check SDP direction, codec compatibility and packet counters in that order.
Read the Pion guide ->The six getStats numbers that actually tell you what broke
Six getStats fields worth putting on a screen, in the order to read them: the selected candidate pair, inbound frame counters, and the outbound reason the encoder is holding back.
Read the diagnostics guide ->Testing WebRTC without a camera: a loopback self-test that proves the whole path
Test the whole path with no camera and no human: a canvas publisher, a timer instead of an animation frame, and a moving timestamp that proves the picture is live rather than merely present.
Read the self-test guide ->Coturn and Kurento in Docker Compose
A working split between host networking for coturn, Compose networking for Kurento and the Spring Boot service, plus the public-address settings that prevent private IPs in SDP.
Read the deployment guide ->Coturn use-auth-secret and the missing realm
Diagnose repeated 401 responses, generate valid time-limited credentials and verify the relay without putting a browser in the loop.
Read the TURN authentication guide ->Start with the failing layer
Most "WebRTC is broken" reports combine several unrelated failures. Signaling can be healthy while the media path is unreachable. ICE can connect while RTP never carries a decodable frame. A TURN allocation can succeed while media ports remain closed.
The guides are organized around that split: transport first, then negotiation, then media. That order is usually faster than changing application code and hoping the symptom changes.
If you want the working reference implementation rather than assembling the pieces yourself, the Low-Latency Kit source package includes the Pion signaling server and SFU, browser publisher and viewer, reconnect chain, diagnostics and deployment notes.