Getting Started
Get started building with Livepeer React
Livepeer React is a set of prebuilt and customizable UI primitives for building live or on-demand video experiences.
Installation
Install Livepeer React using your favorite package manager.
Build with the primitives
You can use Player
primitives to build a media playback experience, and
Broadcast
primitives to build an in-browser broadcasting experience.
Below, we create a simple player and broadcast experience with minimal controls. The player only includes a play/pause button, and the broadcast has a start/stop streaming button.
Integrate with Studio
Now that we’ve started using the primitives, we need something to play or broadcast! We can integrate with the Livepeer Studio API to start playing media.
The below example shows the use of the livepeer
JS SDK, but any other
language’s SDK can be used to fetch the playback info or stream object.
Want to learn more? Continue reading the documentation for more details.