TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

WebTorrent now works in the browser, end-to-end

263 pointsby MzHNover 10 years ago

14 comments

fragmedeover 10 years ago
&quot;instant.io: drop a file or files on the browser, it generates a torrent, and you become the first seeder just send the info hash to a friend and they&#x27;ll download the file from you using the bittorrent protocol -- swarming works (so multiple people can download efficiently)&quot;<p><a href="https://botbot.me/freenode/webtorrent/2014-09-11/" rel="nofollow">https:&#x2F;&#x2F;botbot.me&#x2F;freenode&#x2F;webtorrent&#x2F;2014-09-11&#x2F;</a><p>(wasn&#x27;t obvious to me what this was...)
patrickaljordover 10 years ago
This is a very cool project but it is not compatible with current bittorrent clients. It uses webrtc for the transport instead of UDP. In order for it to be compatible with traditional bittorrent clients, those clients would have to implement communication with webtorrent clients, which hopefully shouldn&#x27;t be too hard, still as of now it won&#x27;t work with current clients. Still very cool though and I hope traditional clients will implement webtorrent. The other way to make it work would for browsers to implement UDP which some do such as chrome but only as chrome apps.
评论 #8318295 未加载
评论 #8318310 未加载
评论 #8317881 未加载
评论 #8325132 未加载
jacquesmover 10 years ago
How hard would it be to make a torrent:&#x2F;&#x2F; protocol extension that allows web like content to be stored in torrents? Obviously that would only work for static content (unless the creation of such torrents could be used to preserve state) but this seems like an interesting development.<p>Decentralized hosting of content that can easily be browsed seems like a useful thing to have.
评论 #8317949 未加载
评论 #8318296 未加载
评论 #8317937 未加载
评论 #8317936 未加载
评论 #8318231 未加载
评论 #8317982 未加载
abdullahkhalidsover 10 years ago
Github: <a href="https://github.com/feross/webtorrent" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;feross&#x2F;webtorrent</a>
评论 #8317614 未加载
the8472over 10 years ago
While that&#x27;s a neat tech toy I don&#x27;t think the browser is a good platform for a torrent client.<p>A significant drawback is that you&#x27;ll have to keep a tab open for seeding. And no DHT support either.<p>BT clients are best operated in a daemon-like fashion with access to system facilities such as inotify, udp and tcp sockets alike and as something that does not compete for CPU time&#x2F;garbage collection&#x2F;file descriptors&#x2F;etc. resources with interactive web browsing.
评论 #8318666 未加载
评论 #8318413 未加载
ridover 10 years ago
Seems similar to PaddleOver [1] which was developed by Bittorrent inc a few years ago using their Btapp.js [2] library, unfortunately the PaddleOver site has expired and the code base hasn&#x27;t been updated in a year.<p>It would be interesting to know if the developer looked at btapp.js and if so, why did he decide not to use it? Getting this technology web embeddable will go a long way to start making peer-to-peer a convenient method of downloading content vs directly downloading from a server, there&#x27;s always going to be further hurdles to overcome with reliability in a case where the swarm lifetime is very short, but seeding with a few servers can help in that situation. If a web app could upload the torrent and data to a server to seed, then replicate it in a few locations it could be a decent DCDN.<p>[1] <a href="http://pwmckenna.com/2012/06/29/making-of-paddle-over.html" rel="nofollow">http:&#x2F;&#x2F;pwmckenna.com&#x2F;2012&#x2F;06&#x2F;29&#x2F;making-of-paddle-over.html</a><p>[2] <a href="http://btappjs.com/" rel="nofollow">http:&#x2F;&#x2F;btappjs.com&#x2F;</a>
评论 #8318349 未加载
steveklover 10 years ago
Does it mean we can finally have web-based popcorn time?<p>This is REVOLUTIONARY
评论 #8319477 未加载
wtracyover 10 years ago
This looks fantastic for an idea I&#x27;ve been kicking around: Using BitTorrent as a way for clients to upload multi-gigabyte files to a website without using FTP.<p>The idea is to leverage BitTorrent&#x27;s robustness in the face of random disconnections and reconnections as well as the easy-to-use throttling options that most clients expose.<p>The server would run a special BitTorrent client that never seeds, to prevent malicious users from using the server as a gateway to redistribute content.<p>So, rather than the traditional cloud of people seeding and leeching, the only participants would be one client seeding, and the server leeching. Once the transfer completes, the user could disconnect and the torrent would cease to exist.
评论 #8320911 未加载
评论 #8320912 未加载
diegocrover 10 years ago
I can&#x27;t get it to work, hope this helps:<p>Firefox 32:<p>ICE failed, see about:webrtc for more details<p>Nightly 35a1:<p>Mandatory&#x2F;optional in createOffer options is deprecated! Use {} instead (note the case difference)!<p>setLocalDescription called without success&#x2F;failure callbacks. This is deprecated, and will be an error in the future.<p>ICE failed, see about:webrtc for more details<p>this._pc is null bundle.js:25705<p>Chrome 37:<p>Uncaught, unspecified &quot;error&quot; event. bundle.js:9134
u124556over 10 years ago
Is the info hash different from a magnet url? can they be translated from one to the other?
评论 #8319979 未加载
frikover 10 years ago
Is the code available on GitHub? I just saw tge demo on my mobile browser.
higherpurposeover 10 years ago
Why doesn&#x27;t it work with magnets, too?
html5webover 10 years ago
Wow!
captainmuonover 10 years ago
It&#x27;s nice to see BitTorrent used for file transfers (user to user). Strange that it is still hard to get files from A to B. You can put them on a webserver if you have one, or use dropbox, but the download can only start when the upload is finished. I usually use scp for this, but it only works when one side is not firewalled, and isn&#x27;t feasible for non-technical people. This one could be really useful.<p>It&#x27;s sad that BitTorrent is otherwise basically dead (as a way to obtain content). Where I live (Germany) you often get immediately subpoenaed (or the German equiv.) if you use it to download something.
评论 #8317826 未加载
评论 #8318130 未加载
评论 #8317825 未加载
评论 #8317792 未加载
评论 #8317820 未加载