catalog / protocols

WebRTC

Peer-to-peer audio, video and data — including getting through the NAT.

16 capabilities 1 sections reference specification

Build against it

# give your agent the catalog — no account, no install
claude mcp add provespec -- npx -y provespec-mcp

# then, from any agent session
spec_get(slug: "webrtc")                → the capability tree
spec_checklist(slug: "webrtc")          → the questions to answer
spec_grade(slug: "webrtc", grades: [...])  → parity % + the gap list

# or just fetch it
curl https://provespec.com/catalog/webrtc/spec.json

Grade every capability below as yes · partial · no · na, with a file reference as evidence. Whatever you leave ungraded counts as missing — the gap list is the work queue.

Or just paste this to your agent

Use the ProveSpec MCP server. Fetch the "webrtc" spec with
spec_get, then walk spec_checklist and grade this repository against it —
one verdict per capability, each with a file reference as the note.
Call spec_grade with the results and give me the gap list as the plan.

If the server is not registered, add it first:
  claude mcp add provespec -- npx -y provespec-mcp

The specification

AI 16

Signalling
  • Offer/answer exchange over a channel you provide SDP; the protocol does not specify transport
  • Renegotiation when tracks change mid-call
Connectivity
  • ICE candidate gathering and connectivity checks
  • STUN for reflexive addresses
  • TURN relay when direct connection fails the case that actually decides call success
  • Trickle ICE to shorten setup
Media
  • Codec negotiation Opus, VP8/VP9, H.264, AV1
  • Simulcast or SVC for multiple qualities
  • Echo cancellation, noise suppression, gain control
  • Adaptive bitrate under congestion
Data
  • Data channels, reliable and unreliable modes
Security
  • DTLS-SRTP mandatory; media is always encrypted
  • Permission prompts before camera and microphone
Quality
  • Statistics API for jitter, loss and round-trip time
  • Graceful degradation to audio-only
Lifecycle
  • Clean teardown releasing devices and sockets
Download spec.json All 100 specs