How to Broadcast a WebRTC Stream on Twitch

Learn how to create a WebRTC stream in OBS and broadcast it to Twitch

Braden Riggs
3 min readMar 6, 2024
Photo by Libby Penner on Unsplash

Recently, while exploring syndicating Dolby.io WebRTC streams, I learned that Twitch has added support for WebRTC Ingest or WHIP as it is known in the industry.

WebRTC for streaming is an exciting choice because it can decrease stream latency compared to traditional protocols such as RTMP and HLS. When ingested, Twitch will transmux the WebRTC stream into something the platform supports (HLS), so that adds latency, slowing down the feed.

With that said, WHIP support is a great step for the community and with OBS now adding support for WebRTC, I thought I’d have to try it out.

In this guide, we’ll showcase how to stream WebRTC from OBS into Twitch.

Setting up OBS for WebRTC

The core OBS project has recently added WebRTC support (with WHIP)! You can download the OBS project here.

Once downloaded, extract the project and install it.

Streaming WebRTC from OBS to Twitch

With the project installed and launched, navigate to:
Settings -> Stream

Inside of Stream select WHIP as your service:

Image by author.

To start a WebRTC stream to Twitch you need the Server path and your Stream key.

The Twitch WHIP server

The server is (currently) the same for everyone:
https://g.webrtc.live-video.net:4443/v2/offer

Note: This server currently only supports H264 and Opus-encoded streams.

Getting Your Twitch Stream Key

Your Twitch Stream Key can be found on your dashboard once you’ve logged in, under:
settings -> stream

Image by author.

Copy both the Server URL and the Stream Key into the Server and Bearer Token inputs within OBS.

Image by author.

Click Apply, set up OBS as usual, and click Start Stream to begin your WebRTC broadcast to Twitch.

Image by author.

Learn More

Broadcasting a WebRTC stream to Twitch is a great feature for the site as it allows people to easily syndicate their WebRTC streams to a popular platform. Because Twitch transmuxes the WebRTC stream, some delay is added, so if you’re looking for an end-to-end white-label real-time streaming solution, check out Dolby.io Real-time Streaming.

A special shout out to Sean DuBois for his work on both the OBS project and Twitch’s WHIP support.

--

--

Braden Riggs
Braden Riggs

Written by Braden Riggs

Australian Data Scientist/Enthusiast | Developer Advocate@ Dolby.io | in/briggs599 | @BradenRiggs1

No responses yet