https://github.com/livepeer/playback-policy-sample-app
A sample app that demonstrates how to implement playback policy for livestreams and on demand assets
https://github.com/livepeer/playback-policy-sample-app
Last synced: 12 months ago
JSON representation
A sample app that demonstrates how to implement playback policy for livestreams and on demand assets
- Host: GitHub
- URL: https://github.com/livepeer/playback-policy-sample-app
- Owner: livepeer
- Created: 2022-10-24T19:19:30.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-08T23:08:08.000Z (over 3 years ago)
- Last Synced: 2025-06-30T02:49:04.920Z (12 months ago)
- Language: TypeScript
- Homepage: playback-policy-sample-app.vercel.app
- Size: 2.34 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#  Livepeer Studio Sample App
A sample application that demonstrates the features of Plyaback Policy for Livepeer Studio
>NOTE: This app uses the Goerli testnest and requires the wallet to contain at least 0.001 testnet Eth
[Goerli Faucet]( https://goerlifaucet.com/)
# ⏱ Quick Start
Prerequisites: [Node (v16 LTS)](https://nodejs.org/en/download/) plus [npm](https://docs.npmjs.com/cli/v8/configuring-npm/install) and [Git](https://git-scm.com/downloads)
> clone/fork 🎥 Livepeer Studio Playback Policy App:
```bash
git clone git@github.com:livepeer/Playback-Policy-Sample-App.git
```
> install Playback Policy App and dependencies:
```bash
cd playback-policy-sample-app
npm install
```
> start Playback Policy Sample App:
```bash
npm run dev
```
🔏 Setup environment Variable:
This sample app uses an API key from a monitored account made for public use. When customizing this for your own use, setup a `.env` file and store you API key there for security.
>Make sure to include the `.env` in the `.gitignore`
- [What are environment variables](https://www.freecodecamp.org/news/what-are-environment-variables-and-how-can-i-use-them-with-gatsby-and-netlify/)
- [dotenv](https://www.npmjs.com/package/dotenv)
- [Environment variables in NextJS](https://nextjs.org/docs/basic-features/environment-variables)
## Additional information
[Playback Policy with LivepeerJS SDK](https://livepeerjs.org/examples/react/access-control)
### For a more in-depth guide, [visit this page](/Guide/PlaybackPolicyGuide.md).