gitsummore / nile.js

Scalable peer to peer live video streaming built on torrents and webRTC
https://nilejs.com/
MIT License
1.77k stars 102 forks source link

Possible to stream video without recording feature? #28

Open joshterrill opened 7 years ago

joshterrill commented 7 years ago

I understand that you can use regular WebRTC to stream video to clients without recording, but I was wondering if it would be possible to integrate that as a flag in this library as well. That way I can use one library and keep everything in one place. If that's possible, I could probably work on it, just point me in the right direction.

kbbqiu commented 7 years ago

Hey joshterrill, you're correct! The reason why we are recording is so that we can convert the stream blobs into torrent files. Torrent files are immutable so we record and then seed the torrent. The world of webtorrent/torrent is a whole 'nother world, but I think it would be awesome if we could take webTorrents out of the library completely and build our own DHT and tracker system for just webRTC live video streaming. It's a project for the future though... thoughts?

dob commented 7 years ago

@kbbqiu Nice work on this. Did you guys look at PPSPP at all (https://tools.ietf.org/html/rfc7574)? As you mention, it would be a custom implementation that forms a new per-stream swarm on top of a DHT for tracker discovery. We're considering testing it out for p2p distribution on top of Livepeer.

sagar1garg commented 6 years ago

@dob how did the test go?