Installation
Install Livepeer React using your favorite package manager.Build with the primitives
You can usePlayer
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 thelivepeer
JS SDK, but any other
language’s SDK can be used to fetch the playback info or stream object.