https://github.com/livepeer/studio-sample-app
https://github.com/livepeer/studio-sample-app
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/livepeer/studio-sample-app
- Owner: livepeer
- Created: 2022-07-21T21:40:21.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-24T15:24:12.000Z (over 3 years ago)
- Last Synced: 2025-09-16T14:13:43.399Z (10 months ago)
- Language: JavaScript
- Homepage: studio-sample-app.vercel.app
- Size: 2.05 MB
- Stars: 8
- Watchers: 2
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#  Livepeer Studio Sample App
A sample application that demonstrates the features of Livepeer Studio
# ⏱ 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 Sample App:
```bash
git clone https://github.com/livepeer/studio-sample-app.git
```
> install Studio Sample App and dependencies:
```bash
cd studio-sample-app
npm install
```
> start Studio 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)
# 📼 On Demand
- Upload assets
- Update assets
- Delete assets
- Get all assets
- Get individual assets
# 🧰 On Demand SDK
- useAsset
- useUpdateAsset
- useCreateAsset
# 📡 Livestream
- Create stream
- Get all streams
- Get individual stream
- Get all sessions
- Get individual session
# 📹 Livestream SDK
- useStream
- useCreateStream
- useStreamSessions
- useUpdateStream
# 📜 Documentation
- [Livepeer Studio Docs](https://docs.livepeer.studio/)
- [Livestream Guide](https://docs.livepeer.studio/guides/livestreaming)
- [Livestream API](https://docs.livepeer.studio/references/stream/)
- [On Demand Guide](https://docs.livepeer.studio/guides/on-demand)
- [On Demand API](https://docs.livepeer.studio/references/vod/)
- [Mint Video NFT Guide](https://docs.livepeer.studio/guides/mint-guides/)
# 📖 Resources
- [NodeJS](https://nodejs.org/en/)
- [npm](https://docs.npmjs.com/cli/v8/configuring-npm/install)
- [NextJS](https://nextjs.org/)
- [tus](https://tus.io/)
- [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API)
- [Axios](https://axios-http.com/)