We can use the execllent videostream
to stream video from IPFS to the browser. All we need to do is return a ReadableStream
-like object that contains the requested byte ranges.
Take a look at index.js
to see a working example.
In this directory:
$ npm install
$ npm start
Then open http://localhost:8888 in your browser.