1.0.0-alpha.5-002 • Published 5 years ago

@iameli/livepeer-player v1.0.0-alpha.5-002

Weekly downloads
-
License
-
Repository
-
Last release
5 years ago

Livepeer Video Player

Discord GitHub issues

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.

Screenshot of dapp

Table of Contents

Installation

Run yarn from the root of the monorepo.

Developing

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.

Building

yarn build

Built files will be output to ./dist

Customizing Your Build

VariableDefaultDescription
NODE_ENVdevelopmentyarn 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_PROVIDERBy 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: infura.io - https://<network>.infura.io/<your-token>local geth/testrpc - http://localhost:8545
REACT_APP_STREAM_ROOT_URLThe root http url from which broadcaster m3u8 files will be served

Need a new variable? Create a PR or file an issue 🍻

Changing Stream Route on the fly

add ?source=<STREAM_ROOT_URL>/stream to the player url

Example: https://media.livepeer.org/embed/0x0ddb225031ccb58ff42866f82d907f7766899014?source=http://localhost:8935/stream

Local Mode

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