Documentation Index
Fetch the complete documentation index at: https://na-36-handover-docs-v2-into-docs-v2-dev-20260518.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
@livepeer/react provides a composable Player that handles HLS and WebRTC playback with automatic transport negotiation. Pass a playback source and the component handles ABR selection, poster rendering, and playback state.
Basic player
Player.Root accepts a src array of source objects. For Livepeer streams and assets, the HLS source is at https://livepeercdn.studio/hls/{playbackId}/index.m3u8. For WebRTC, use the getSrc utility from @livepeer/react/external.
Player components
Root components:Player.Rootacceptssrc(source array),autoPlay,volume, and event callbacksPlayer.Containerwraps the video element and controlsPlayer.Videorenders the<video>element with automatic transport selection
Player.PlayPauseTriggertoggles play/pausePlayer.PlayingIndicatorrenders conditionally based on play state (matcher={true}for playing,matcher={false}for paused)Player.MuteTriggertoggles mutePlayer.Volumerenders a volume sliderPlayer.SeekandPlayer.SeekBufferfor scrubbing and buffered range displayPlayer.Timerenders current time / durationPlayer.FullscreenTriggerandPlayer.FullscreenIndicatorPlayer.PictureInPictureTrigger
Player.VideoQualitySelectandPlayer.VideoQualitySelectItemfor manual ABR overridePlayer.RateSelectandPlayer.RateSelectItemfor playback speed
Player.LoadingIndicatorrenders during bufferingPlayer.ErrorIndicatorrenders on playback failurePlayer.LiveIndicatorrenders when the source is a live streamPlayer.Posterrenders a poster image before playback starts
asChild prop delegates rendering to the child element (Radix pattern).
WebRTC playback
For sub-second latency playback, add a WebRTC source alongside HLS:livepeer/ui-kit packages/react/src/player.tsx.
The video overview covers the stream creation and ingest flow that produces the playbackId used here.