WHIP, the WebRTC-HTTP ingestion protocol, is a standard method for sending a live audio and video stream from an encoder or browser into a WebRTC media server by using a single HTTP exchange for setup. In streaming & broadcasting, it gives WebRTC a simple, interoperable ingest step comparable to what RTMP has long provided, while keeping the sub-second latency that WebRTC is designed for.
The protocol was developed in the IETF and published as RFC 9725 in 2025. Before WHIP, every WebRTC platform used its own signaling, so a hardware encoder or broadcast software needed a custom integration for each service. WHIP replaces that with one well-defined HTTP interface that any compliant encoder can call.
How WHIP sets up an ingest session
WHIP establishes a session through an HTTP POST carrying an SDP offer, after which all media flows over standard WebRTC transport. The encoder, called the WHIP client, sends its Session Description Protocol offer to the endpoint URL, and the server replies with an SDP answer and a status of 201 Created.
The response includes a Location header that identifies a session resource on the server. The client keeps this URL for the life of the stream and sends an HTTP DELETE to it when the broadcast ends. Optional HTTP PATCH requests on the same resource support trickle ICE and ICE restarts, which help when network conditions change during a long event.
The full sequence is summarized below.
| Step | HTTP action | Purpose |
|---|---|---|
| Offer | POST to the WHIP endpoint | Client proposes codecs and transport |
| Answer | 201 Created with SDP answer | Server accepts and returns session URL |
| Connectivity | ICE and DTLS handshake | Secure media path is established |
| Media | SRTP over UDP | Audio and video flow to the server |
| Update | Optional PATCH to session URL | Trickle candidates or ICE restart |
| Teardown | DELETE to session URL | Session ends and resources are freed |
Authentication normally uses a bearer token in the HTTP Authorization header, which plays the same role as a stream key in RTMP workflows. The server may also advertise STUN and TURN servers through HTTP Link headers so that clients behind restrictive firewalls can still connect.
Technical characteristics of WHIP
WHIP defines only the signaling step, while media transport, encryption and congestion control come from the WebRTC stack. This narrow scope is deliberate: it keeps the protocol small and allows existing WebRTC servers to add support quickly.
| Characteristic | Typical value or method | Practical effect |
|---|---|---|
| Signaling | One HTTP POST with SDP | Easy to implement and firewall-friendly |
| Transport | SRTP over UDP with ICE | Low delay and NAT traversal |
| Encryption | DTLS-SRTP, mandatory | Media is always encrypted |
| Video codecs | H.264, VP8, VP9, AV1 | Depends on client and server support |
| Audio codec | Opus in most deployments | Low delay with good quality |
| Ingest latency | Usually well under one second | Suitable for interactive streaming |
Because WebRTC uses real-time congestion control, the encoder adapts its bitrate to the available bandwidth instead of building a buffer. This keeps latency low, but it also means picture quality can drop temporarily on an unstable connection.
WHIP compared with other ingest protocols
WHIP competes mainly with RTMP and SRT as the first-mile protocol between an encoder and a streaming platform. Each protocol balances latency, reliability and ecosystem support differently.
| Protocol | Typical ingest latency | Main strength | Main weakness |
|---|---|---|---|
| WHIP | Below one second | Native path into WebRTC delivery | Quality varies on poor networks |
| RTMP | Several seconds | Universal platform support | Old codecs and TCP head-of-line delay |
| SRT | Configurable, often 0.5 to 2 s | Reliable over lossy links | Needs conversion for WebRTC playback |
WHIP has a playback counterpart, WHEP, which uses the same HTTP pattern for egress to viewers. Together they allow a fully WebRTC chain with glass-to-glass latency of a few hundred milliseconds, whereas HLS, MPEG-DASH and even Low-Latency HLS typically add seconds through segmenting and buffering.
When to choose WHIP
WHIP is the right choice when interaction between the presenter and the audience is part of the experience. Auctions, betting, remote interviews, live shopping and online classes all suffer when viewers see events several seconds late.
| Situation | Recommended protocol | Reason |
|---|---|---|
| Interactive live event | WHIP with WebRTC delivery | Sub-second end-to-end delay |
| Browser-based contributor | WHIP | Browsers support WebRTC natively |
| Long-haul contribution over internet | SRT | Retransmission protects quality |
| Upload to many social platforms | RTMP | Widest acceptance by services |
| Large passive audience | WHIP or SRT ingest, HLS delivery | CDN scale matters more than delay |
Many broadcast encoders and software tools now include a WHIP output option, and several media servers accept WHIP alongside RTMP. This makes it practical to test WHIP without replacing an existing production chain.
Limitations and common mistakes
The main limitation of WHIP is that WebRTC favors timeliness over completeness. Lost packets are concealed or ignored rather than retransmitted at length, so a congested uplink produces lower resolution or brief artifacts instead of delay.
- Assuming WHIP improves viewer latency alone: delivery through HLS still adds several seconds after ingest.
- Ignoring codec negotiation: if the server does not accept the encoder’s codec, the session fails at the SDP stage.
- Leaving sessions open: clients that never send DELETE can leave stale resources on the server.
- Exposing bearer tokens: tokens embedded in public web pages allow anyone to publish to the endpoint.
- Skipping TURN configuration: corporate networks often block direct UDP traffic.
WHIP is also not a replacement for professional contribution links such as SDI or SMPTE ST 2110 inside a facility. It is designed for internet ingest into WebRTC infrastructure, not for uncompressed studio routing.
Stripped to the essentials
WHIP is an agreed way for a camera, encoder or web browser to start sending a live stream to a real-time video service. The device asks once, the server answers once, and the video starts flowing almost instantly.
Before WHIP, each service had its own private handshake, like every building using a different kind of key. WHIP gives them one common key, so the same equipment works with many services, and viewers can see the action with less than a second of delay.
Where it is applied
An online auction house runs weekly live sales in which bidders respond to the auctioneer in real time. The production team sends the program from a broadcast encoder to its media server using WHIP, with H.264 video at 1080p and Opus audio, authenticated by a bearer token issued for each event.
Viewers watch through WHEP in their browsers, and the measured glass-to-glass delay stays at about 400 milliseconds. Previously, the same sale was streamed with RTMP ingest and HLS delivery, and bids arrived after the hammer fell because viewers were roughly eight seconds behind. After the change, the auctioneer sees bids that match the live moment, and disputed lots largely disappear.