WHIP

Also known as: WebRTC-HTTP ingestion protocol

On this page 7

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.

StepHTTP actionPurpose
OfferPOST to the WHIP endpointClient proposes codecs and transport
Answer201 Created with SDP answerServer accepts and returns session URL
ConnectivityICE and DTLS handshakeSecure media path is established
MediaSRTP over UDPAudio and video flow to the server
UpdateOptional PATCH to session URLTrickle candidates or ICE restart
TeardownDELETE to session URLSession ends and resources are freed
Main steps of a WHIP session

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.

CharacteristicTypical value or methodPractical effect
SignalingOne HTTP POST with SDPEasy to implement and firewall-friendly
TransportSRTP over UDP with ICELow delay and NAT traversal
EncryptionDTLS-SRTP, mandatoryMedia is always encrypted
Video codecsH.264, VP8, VP9, AV1Depends on client and server support
Audio codecOpus in most deploymentsLow delay with good quality
Ingest latencyUsually well under one secondSuitable for interactive streaming
Key characteristics of WHIP ingest

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.

ProtocolTypical ingest latencyMain strengthMain weakness
WHIPBelow one secondNative path into WebRTC deliveryQuality varies on poor networks
RTMPSeveral secondsUniversal platform supportOld codecs and TCP head-of-line delay
SRTConfigurable, often 0.5 to 2 sReliable over lossy linksNeeds conversion for WebRTC playback
WHIP, RTMP and SRT as contribution protocols

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.

SituationRecommended protocolReason
Interactive live eventWHIP with WebRTC deliverySub-second end-to-end delay
Browser-based contributorWHIPBrowsers support WebRTC natively
Long-haul contribution over internetSRTRetransmission protects quality
Upload to many social platformsRTMPWidest acceptance by services
Large passive audienceWHIP or SRT ingest, HLS deliveryCDN scale matters more than delay
Choosing an ingest protocol by situation

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.