Configure WebRTC WHEP egress on a media server for low-latency viewer playback

domain: datatracker.ietf.org · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Deploy or configure a media server that supports WHEP egress (e.g., Cloudflare Realtime, Dolby Millicast, MediaMTX, or a custom SFU).
  2. A WHEP subscriber initiates playback by sending an HTTP POST with an SDP offer (or an empty body for an offer-less flow) to the WHEP endpoint URL; the server responds with an SDP answer.
  3. Include an Authorization header with the appropriate bearer token if the WHEP endpoint requires access control; the token type and format are platform-specific.
  4. The SDP negotiation establishes codec preferences (H.264, VP8, VP9, etc.) and ICE candidates; handle Trickle ICE if the server supports it to reduce connection setup time.
  5. After ICE connection is established, DTLS-SRTP is used for media encryption; no additional media-level encryption configuration is needed by the client.
  6. To disconnect, the WHEP client sends an HTTP DELETE to the resource URL returned in the Location header of the WHEP POST response.

Known gotchas

Related routes

Enable WebRTC simulcast with VP8 spatial layers in a browser sender using RTCRtpSendParameters
developer.mozilla.org · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans