From 2be09cc2fabef37ddba365fb0b014d719fbb8fff Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Thu, 28 Jul 2016 22:09:00 -0700 Subject: Add something about live streaming in the faq (fix #826) --- docs/faq.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'docs/faq.md') diff --git a/docs/faq.md b/docs/faq.md index 3678700..00531bb 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -334,6 +334,23 @@ There are many talks online about WebTorrent. Here are a few: +## Is it possible to do live streaming with WebTorrent? + +WebTorrent cannot do live streaming out-of-the-box, because that's beyond the scope +of a torrent client. However, you can build a live streaming solution on top of +WebTorrent and torrent technology. + +Torrents are immutable. That means that once a torrent files is created, it cannot +be changed without changing the info hash. + +A naive approach would be this: The video producer could take every 10 seconds +of live video and create a torrent from it. Viewers would follow this "feed" of +torrent files (or info hashes) and download them sequentially. Thus, viewers would +be around 10-20 seconds behind the live stream. + +This approach can definitely be improved, though! Why not give that a shot yourself +and share the code? + # Troubleshooting ## Why does browser downloading not work? I see no peers! -- cgit v1.2.3