Skip to content
Guides

What are WHIP and WHEP?

The short answer

WHIP sends live video into a streaming service over WebRTC, and WHEP plays it back out. Each session starts with one HTTP POST carrying an SDP offer. WHIP is RFC 9725, published March 2025. WHEP is still an IETF draft.

WHIP and WHEP side by side
WHIPWHEP
Full nameWebRTC-HTTP Ingestion ProtocolWebRTC-HTTP Egress Protocol
DirectionAn encoder or browser sends media to a serviceA player receives media from a service
StatusRFC 9725, Standards Track, March 2025Internet-Draft, version 05, 11 October 2026. Not an RFC
Starting a sessionHTTP POST of an SDP offer. The reply is 201 Created with the SDP answer and a Location headerHTTP POST of an SDP offer. The reply is 201 Created with the answer, or 406 Not Acceptable with a counter-offer
Ending itHTTP DELETE to the session URLHTTP DELETE to the session URL
AuthenticationBearer token in the Authorization headerBearer token in the Authorization header
Software encoderOBS Studio 30.0 added a WHIP outputNone: WHEP is for players

Checked on against RFC 9725 (WHIP), the WHEP Internet-Draft and the OBS Studio 30.0 release notes.

Both names describe the same small thing: an agreed way to start a WebRTC stream with a server. WHIP covers the sending side and WHEP the watching side. The media itself is ordinary WebRTC in both.

Written by the TRaX Streaming team. Last reviewed .

What is WHIP?

WHIP, the WebRTC-HTTP Ingestion Protocol, is how an encoder or a browser starts sending a WebRTC stream to a server. WebRTC itself leaves that handshake out. RFC 9725 says WebRTC “intentionally does not specify a signaling transport protocol”, and calls that gap an obstacle to using WebRTC for ingest in broadcast and streaming, where an encoder is expected to push to any service.

WHIP closes the gap with one HTTP request. The encoder POSTs an SDP offer to a URL. The server replies 201 Created with its SDP answer and a Location header that names the new session. Media then flows one way, encoder to server. An HTTP DELETE to the session URL ends it.

For the person setting it up, that comes to a URL and a bearer token. Trickle ICE and ICE restarts, where a client uses them, go over HTTP PATCH to the same session URL.

What is WHEP?

WHEP, the WebRTC-HTTP Egress Protocol, points the same exchange the other way. A player POSTs an SDP offer, the server answers, and media flows from the server to the viewer. A WHEP server can also refuse the offer with 406 Not Acceptable and send a counter-offer, a step WHIP does not have.

WHEP is not finished. It is an IETF Internet-Draft, at version 05 dated 11 October 2026, and every Internet-Draft carries the notice that it may be “updated, replaced, or obsoleted by other documents at any time”. Code written against it today may need a change when the RFC is published.

Neither protocol chooses the codec

WHIP and WHEP start and stop a session. Which audio and video formats flow is settled in the SDP offer and answer, as in any WebRTC call. The WHEP draft tells players to offer as many codecs as they support, and the example sessions in both documents carry Opus audio.

On TRaX the audio over WebRTC is Opus. A feed that reached TRaX over SRT or RTMP with AAC audio is transcoded to Opus before WHEP playback. A player that expects AAC connects, shows video and stays silent, which is the first thing to check when a WHEP stream has no sound.

Where TRaX uses WHIP and WHEP

Publishing: a camera, microphone or screen share in the TRaX studio can publish from the browser over WHIP, with a short-lived session token and no install.

Playback: the embeddable player plays a source over WHEP, and the TRaX Edge watch page plays over WebRTC as well. The player fetches a read token that lasts two minutes. The two minutes limit when a connection can start, and a viewer already watching keeps watching. Apps built on the API use WHEP to monitor the studio’s program output.

One limit: an input you create for an encoder does not take WHIP. Its WHIP address carries no credential and answers 401. An encoder publishes to that input over SRT, RTMP or RTMPS.

The publish and play addresses on TRaX differ only in the last path segment, /whip or /whep, and both take the token as a Bearer header.

WHIP beside SRT and RTMP

The three do one job, getting a live feed to a server, for three kinds of sender. WHIP fits a browser, which speaks WebRTC and neither of the others. SRT fits an encoder on a line that drops packets: the TRaX receiver holds a 2-second window by default so a lost packet can be sent again. RTMP fits the encoder that offers nothing else.

Questions

What is the difference between WHIP and WHEP?

Direction. WHIP publishes media into a service, and WHEP plays media out of one. The HTTP exchange is nearly the same in both; WHEP adds the option of a counter-offer from the server.

Is WHIP a standard?

Yes. WHIP is RFC 9725, an IETF Standards Track document published in March 2025. It updates RFC 8840 and RFC 8842.

Can OBS publish over WHIP?

OBS Studio added a WHIP output in version 30.0, according to its release notes. To send OBS to a TRaX input, use SRT or RTMPS instead, because an encoder input on TRaX does not take WHIP.

Building against the API rather than running a show? WHIP and WHEP reference (developer docs) covers the same ground in implementation detail.

Guides

Run the show from the browser

Multi-host guests on a link, a real scene canvas, multi-destination output and a US delivery network we run ourselves.