enginefs
Simple layer to use and manage torrent-stream engines and access them through HTTP / FUSE.
Somewhat similar to peerflix-server, but allows more sophisticated management, such as automatically closing torrent-stream's after some time of inactivity, etc.
Wishlist:
- HLS support - allow live transcoding to HLS
- FUSE support
Example:
var enginefs = ; // Set engine - standard torrent-stream would do the trickenginefsengine = ; // After 20s of inactivity we consider a HTTP stream to be inactive, and if an engine (infoHash) has had no active streams for 2 minutes we destroy itenginefsSTREAM_TIMEOUT = 20*1000;enginefsENGINE_TIMEOUT = 2*60*1000; // Init the server, try different portsvar server = enginefs;server; server; // You can use middlewaresenginefs; // Init an engine when we request itenginefs; // Stream Big Buck Bunny// vlc http://localhost:10000/2f24d03eab998ca672b8c1ef567a184609236c02/0 // Stream Wizard Of Oz// vlc http://localhost:10000/24c8802e2624e17d46cd555f364debd949f2c81e/0