Learn how to broadcast using WebRTC
Broadcast
component to broadcast from the web.
Broadcast
primitives with a
stream key, from a stream we created.
We show some simple styling below with Tailwind CSS, but this can use any
styling library, since the primitives ship as unstyled, composable components.
STREAM_KEY
with your stream key for the stream.
HEAD
request to the WebRTC redirect endpoint:
https://lax-prod-catalyst-2.lp-playback.studio/webrtc/{STREAM_KEY}
. We will
use this in the next step.
HEAD
request - please check back later.RTCPeerConnection
with the ICE servers from the redirect URL.RTCPeerConnection
.src
to the srcObject
.