Skip to content

Latest commit

 

History

History
6 lines (4 loc) · 565 Bytes

README.md

File metadata and controls

6 lines (4 loc) · 565 Bytes

Blockchain-paystream

Run npm install to install dependencies. After this, run bin/www. A server will start listening on port 3000.

A DASH stream manifest is present at /stream.mpd. The dash.js video player on / will automatically start playing from this manifest. All video fragments as inaccessible (i.e. not stored in /public) and are loaded through a controller method which first checks if there are enough tokens to load the fragment.

Payment succeeds through the /pay method. This should be called with some GET parameters to make a transaction.