[](https://discord.gg/7wRSUGX) [](https://github.com/livepeer/livepee
npm install @iameli/livepeer-player

A video player for the web. Lets you see what's live streaming on the network. Our hosted media player (media.livepeer.org) runs off of this project.
- Installation
- Developing
- Building
Run yarn from the root of the monorepo.
``bash`
yarn start
> Note: The console may output warnings. You can submit a PR to fix them or just ignore them since they aren't breaking anything.
`bash`
yarn build
Built files will be output to ./dist
| Variable | Default | Description |
| --------------------------- | ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| NODE_ENV | development | yarn start always sets this to development and yarn build will always set this to production. You should not have to modify this variable |PUBLIC_URL
| | / | The root url of the site (only applies to production builds) |REACT_APP_HTTP_PROVIDER
| | | By default, the app will use the Livepeer testnet provider (https://ethrpc-testnet.livepeer.org), but this option allows you to specify a custom Ethereum http provider. You may want to use one of the following: https://
infura.io - http://localhost:8545
local geth/testrpc - REACT_APP_STREAM_ROOT_URL
|
| | | The root http url from which broadcaster m3u8 files will be served |
Need a new variable? Create a PR or file an issue 🍻
add ?source= to the player url
Example: https://media.livepeer.org/embed/0x0ddb225031ccb58ff42866f82d907f7766899014?source=http://localhost:8935/stream
pull the local current stream. the local livepeer node has to have -currentManifest flag on.
go to http://localhost:3000/channels/local . this sets the source to http://localhost:8935/stream/current.m3u8`