Documentation Index
Fetch the complete documentation index at: https://docs.livepeer.org/llms.txt
Use this file to discover all available pages before exploring further.
@livepeer/react provides a composable Broadcast component for browser-based live streaming. It handles WebRTC signalling, camera/microphone enumeration, and stream lifecycle.
Basic broadcast
Broadcast.Root accepts an ingestUrl (the WHIP endpoint for your stream). Get the stream key from the stream creation API response.
Broadcast components
Root components:Broadcast.RootacceptsingestUrland configuration optionsBroadcast.Containerwraps the video preview and controlsBroadcast.Videorenders the local camera preview
Broadcast.EnabledTriggerstarts and stops the broadcastBroadcast.EnabledIndicatorrenders conditionally based on broadcast stateBroadcast.AudioEnabledTriggertoggles microphoneBroadcast.AudioEnabledIndicatorshows mic stateBroadcast.VideoEnabledTriggertoggles cameraBroadcast.VideoEnabledIndicatorshows camera stateBroadcast.ScreenshareTriggerstarts screen sharingBroadcast.ScreenshareIndicatorshows screen share state
Broadcast.SourceSelectenumerates and selects camera/microphone devices
Broadcast.StatusIndicatorrenders based on connection state (connecting, connected, error)Broadcast.ErrorIndicatorrenders on broadcast failureBroadcast.LoadingIndicatorrenders during connection setup
livepeer/ui-kit packages/react/src/broadcast.tsx.
The video overview covers stream creation. The ingest and playback page covers RTMP and WHIP ingest configuration.