Sub-Second Broadcast Contribution Using WebRTC WHIP and WHEP Protocols
How IETF-standardized WebRTC HTTP Ingestion Protocol (WHIP) replaces legacy Flash RTMP for browser-based broadcast contribution.
Key Engineering Takeaways
- Standard web browsers cannot open raw TCP sockets required by legacy RTMP (Dedicated Broadcast Channel), making WebRTC WHIP the modern standard for browser ingest.
- WHIP uses simple HTTP POST SDP offer/answer signaling over TLS while transmitting media over low-latency UDP RTP/SRTP.
- Server-side transcoding relays convert incoming WHIP streams into multi-destination RTMP and edge-cached HLS.
1. Why Legacy RTMP Cannot Run Natively in Web Browsers
Originally created by Macromedia for Flash Player, the Real-Time Messaging Protocol (RTMP) operates over persistent TCP connections on Dedicated Broadcast Channel. Modern web browsers removed Flash and restrict web pages to HTTP/HTTPS, WebSockets, and WebRTC for security reasons.
To allow broadcasters to stream directly from a browser-based studio or remote laptop without installing heavy third-party encoders, the IETF standardized WHIP (WebRTC-HTTP Ingestion Protocol).
2. Inside the WHIP Signaling & Media Pipeline
In OnAir Playoutâs Cloud Live pipeline, the browser captures the 1920x1080 composited canvas and master WebAudio bus, encodes H.264 video and Opus audio via hardware-accelerated WebRTC transceivers, and dispatches an SDP Offer via HTTPS POST to the Broadcast Stream Engine WHIP endpoint.
Within milliseconds, ICE candidate negotiation completes over UDP port 8189, establishing a sub-second contribution link.
Codec Tip: Configuring RTCRtpSender codec preferences to prioritize H.264 Baseline/Main profile eliminates the need for expensive video re-encoding when relaying to YouTube or Facebook RTMP.
3. Bridging WHIP to Multi-Platform RTMP & HLS
Once the WHIP stream lands on the broadcast ingest server, lightweight Hardware Broadcast Encoder worker processes remux the H.264 video track and transcode the audio track to 128 kbps AAC-LC, fanning the stream out simultaneously to YouTube Live, Facebook Live, TikTok, and the public HLS web player.