mafintosh / torrent-stream

The low level streaming torrent engine that peerflix uses
MIT License
1.94k stars 227 forks source link

Feature request: HTTP server #149

Closed tsoernes closed 8 years ago

tsoernes commented 8 years ago

For serving the content of the torrent that's being downloaded. Like peerflix uses and like Webtorrent has.

rom1504 commented 8 years ago

you can use peerflix as a lib

tsoernes commented 8 years ago

Can you give an example? On Dec 4, 2015 22:03, "Romain Beaumont" notifications@github.com wrote:

you can use peerflix as a lib

— Reply to this email directly or view it on GitHub https://github.com/mafintosh/torrent-stream/issues/149#issuecomment-162081353 .

rom1504 commented 8 years ago

https://github.com/xat/castnow/blob/master/plugins/torrent.js#L23

tsoernes commented 8 years ago

var engine = peerflix(torrent, opts); takes the same opts as torrent-stream, right? And the http server is then created automatically?

rom1504 commented 8 years ago

yes https://github.com/mafintosh/peerflix/blob/master/index.js#L184

tsoernes commented 8 years ago

Thanks!