/webrtc-demo

"Cloudflare Stream is the first cloud service to let you both broadcast using WHIP and playback using WHEP — no vendor-specific SDK needed."

Primary LanguageTypeScriptMIT LicenseMIT

Stream and playback live video over WebRTC with Cloudflare Stream

Follow this guide to get started.

You can run and edit this code in Stackblitz using the links below:

Live Demo

First, set up and change the WHIP and WHEP URLs with their private keys.

Note: the URL keys are meant to be private.

Connect the Repository to Cloudflare Pages.

Start the live stream on: WHIP And by activating "Live Playback and Recording" on the Cloudflare Dashboard.

Watch the live stream on: WHEP

Note: I might start the live stream at random times, so it might not show anything most of the time.