TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

WebTorrent – BitTorrent over WebRTC

380 点作者 Doolwind超过 9 年前

33 条评论

mmcclure超过 9 年前
I feel like I&#x27;ve seen this pop up a few times now, but this is really, really cool stuff. The only thing that concerns me about the growing popularity of using WebRTC is the security concerns around unknowingly joining a p2p network like this for potentially any site you visit. It&#x27;s not hard to imagine what a bad actor could do to content before passing it along, or more simply, the fact that your true IP is exposed.<p>Curmudgeony security issues aside, this undeniably feels like The Future™ and a big deal to watch out for. It&#x27;s also one of those cases where a creator &#x2F; maintainer makes a huge difference for long term viability in my opinion. Feross is crazy smart and has been working with all the related tech for a while now (via PeerCDN, Instant.io, etc, etc), and is just an all around respectful, nice guy, which is important for the continued development &#x2F; community aspect.
评论 #10922190 未加载
评论 #10923556 未加载
lambdacomplete超过 9 年前
Amazing project, really! But <i>please</i>, for the sake of users (like me) who live in countries where ISPs set a &quot;quota&quot; on DSL connections: ask the users whether they want to start downloading Sintel before doing so :) Now I&#x27;m afraid of opening the website again.
评论 #10922962 未加载
评论 #10923152 未加载
评论 #10924426 未加载
评论 #10922848 未加载
评论 #10924183 未加载
imrehg超过 9 年前
Does this site really start downloading a 124MB torrent right after opening the page (sintel.torrent)? If so, why would that be a good idea to do?
评论 #10922302 未加载
评论 #10923295 未加载
评论 #10921994 未加载
erikpukinskis超过 9 年前
This makes me so happy. If we can get good support for WebRTC and getUserMedia the web will be able to keep going as a decent platform for apps.<p><a href="http:&#x2F;&#x2F;caniuse.com&#x2F;#feat=stream" rel="nofollow">http:&#x2F;&#x2F;caniuse.com&#x2F;#feat=stream</a><p><a href="http:&#x2F;&#x2F;caniuse.com&#x2F;#feat=rtcpeerconnection" rel="nofollow">http:&#x2F;&#x2F;caniuse.com&#x2F;#feat=rtcpeerconnection</a><p>We&#x27;re really at the mercy of open platform-minded engineers at Google, Apple and Microsoft though! I wonder what we can do to help support those folks.
评论 #10923080 未加载
currysausage超过 9 年前
Very curious about the legal implications if every site that I visit can transfer files to unknown peers in the background. P2P is, AFAIK, a big source of costly cease-and-desist orders in Germany. With WebTorrent, I guess I could tell the right holder to bring the matter to court and plausibly state that some malicious ad iframe must have distributed that MKV without my knowledge.
评论 #10922282 未加载
评论 #10923910 未加载
TheAceOfHearts超过 9 年前
You can try out WebTorrent at Instant.io[0]. It&#x27;s probably the easiest ways to share files with someone, as long as both people have modern browsers.<p>Unfortunately, after a certain file size it&#x27;ll just crash your browser. It&#x27;d be great if there was a way to work with large (+2GB) files.<p>[0] <a href="https:&#x2F;&#x2F;instant.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;instant.io&#x2F;</a>
评论 #10922196 未加载
taylorhou超过 9 年前
Very interesting. Figured the day would come but the dev finally did it. Re-decentralizing the web is a great goal and with simple demonstrations like yours, we&#x27;ll get there! Cheers mate
lelandbatey超过 9 年前
This seems very interesting already! I now have some more technical questions:<p>- Where is the downloaded data being stored? With a traditional bittorrent client I the data is written to disk. Since JS doesn&#x27;t make raw disk access available, I&#x27;m assuming it&#x27;s being kept track of in through some js api that tells the browser to store this data. What API is it using?<p>- Even when I finish downloading the video, the player doesn&#x27;t allow me to seek to random positions in the video. It displays a &quot;this is how much is buffered&quot;[0] bar that is way smaller than the green bar at the top of the page indicating download progress. Why is this the case?<p>- As you can see in the screenshot[0], there&#x27;s lots of nodes that are labeled with ip addresses that are not visible to my computer at all. Is this because the displayed ip addresses are self reported?<p>[0] - <a href="http:&#x2F;&#x2F;nacr.us&#x2F;media&#x2F;pics&#x2F;screenshots&#x2F;screenshot--17-46-37-2016.png" rel="nofollow">http:&#x2F;&#x2F;nacr.us&#x2F;media&#x2F;pics&#x2F;screenshots&#x2F;screenshot--17-46-37-2...</a>
评论 #10922177 未加载
评论 #10922092 未加载
johnchristopher超过 9 年前
Question: I see there are some local network IP addresses in the graph ? I suppose external IP addresses are hidden for privacy&#x2F;security purpose but how well are there hidden ?<p>Anther question: How do I open the file once downloaded ? (I use ublock, should the file be displayed in the rectangular area next to the graph ?
kentbrew超过 9 年前
Page wants just a tiny bit of explanation about what&#x27;s going on. Firefox 43.0.4 doesn&#x27;t play the movie; it just sits there with a black box.
评论 #10923288 未加载
yAnonymous超过 9 年前
That&#x27;s great, but BitTorrent over JS is also dangerous, at least where I live.<p>C&#x2F;D letters come with a 200-1000 € fee depending on the content and now it&#x27;s trivial to make someone download stuff illegally in the background.
评论 #10923523 未加载
magicmu超过 9 年前
What a coincidence, I was just playing with this for the first time last weekend! They also have an npm package that can be used for both torrent streaming via node and the browser (<a href="https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;webtorrent" rel="nofollow">https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;webtorrent</a>). Awesome project.
liamzebedee超过 9 年前
WebRTC <i></i>requires<i></i> the use of a centralised signalling server for the initial connection between two peers. I feel many miss this point when reading about WebRTC-enabled projects. Even if you do have Universal Plug and Play which port forwards automatically (and thus you can communicate directly between two peers), you still need this centralised signalling server.<p>Correct me if I&#x27;m wrong, but this poses a problem if you ever want to take WebRTC further (i.e. in a self-hosted mesh network).
评论 #10922784 未加载
rtkwe超过 9 年前
Interesting, if the player never starts you never connect to additional peers. I&#x27;m running this in firefox 43 with flash disabled and the video never starts.
rasz_pl超过 9 年前
1 Pretends to work on a browser not supporting WebRTC. This got me thinking so I went to webrtc.org and all the examples&#x2F;samples also pretend to work and&#x2F;or fail silently - is WebRTC API really not able to even ascertain level of support of the running browser? .. looked under the hood and found <a href="https:&#x2F;&#x2F;webtorrent.io&#x2F;bundle.js" rel="nofollow">https:&#x2F;&#x2F;webtorrent.io&#x2F;bundle.js</a>: throw new Error(&#x27;No WebRTC support: Not a supported browser&#x27;), so it definitely can, but fails to catch those errors and do anything&#x2F;inform user.<p>2 looked at network traffic and it seems to open separate TLS sessions per transferred data packet, not the most optimal thing to do, might be an artefact of being hosted on https. Probably a cpu bottleneck right there.<p>3 doesnt store anywhere (local&#x2F;session storage).
janpieterz超过 9 年前
Interesting, I&#x27;d be curious to some speed tests. I was seeding to around 22 peers for a while but did not get over 5Mbps up, while my internet connection is capable of around 530Mbps. Wondering if this was an inherent WebTorrent problem or simply that not enough people were online with strong connections.
_98fj超过 9 年前
Like many, I thought about this since a couple of years.<p>My idea was a browser-plugin for youtube, that would take the downloaded video and start seeding it. On the other side, if a video has been blocked by YT, it would automatically use the torrent version.
jaysoncena超过 9 年前
How come the download was already completed but the video only buffered around 50%?
throwaway13337超过 9 年前
Can&#x27;t wait to see a popcorn time in the browser. :)
franciscop超过 9 年前
I was toying with the idea of doing something like this a couple of days ago, but two things stopped me:<p>- No support even in modern browsers by default [1]<p>- Don&#x27;t want to [maybe] get into legal troubles if it&#x27;s wrongly used<p>[1] <a href="http:&#x2F;&#x2F;caniuse.com&#x2F;#search=webrtc" rel="nofollow">http:&#x2F;&#x2F;caniuse.com&#x2F;#search=webrtc</a><p>PS, apparently the caniuse info was wrong, since now it appears in green
buzzdenver超过 9 年前
What is the animation on the left full of RFC 1918 addresses ? I assume those are really NAT-ed at some point, aren&#x27;t they ?
评论 #10922160 未加载
评论 #10922146 未加载
edpichler超过 9 年前
Very cool, but what annoys me is it starting the p2p download and upload without asking authorization?
devilsbabe超过 9 年前
Other companies like <a href="http:&#x2F;&#x2F;streamroot.io&#x2F;" rel="nofollow">http:&#x2F;&#x2F;streamroot.io&#x2F;</a> are also using WebRTC to help content hosting sites like YouTube and Netflix deliver VOD and live streams. Really exciting!
ferongr超过 9 年前
&gt;Error: No WebRTC support: Not a supported browser<p>Funny, Fx44 does support WebRTC
nik736超过 9 年前
If I use Safari on that site it&#x27;s just downloading from your server, right? Since Safari doesn&#x27;t support WebRTC.
leoplct超过 9 年前
Looking forward to see Popcorn time on WebRTC
vonklaus超过 9 年前
it is so fucking obvious that this idea is exactly how browsers will work in the future. A browser is going to just be something like node-webkit&#x2F;webkit&#x2F;electron etc. so compatability won&#x27;t be an issue, then you just connect to a ton of different clients that are running narrow crawls of shit you are searching for. The browser will then not take you to the page, but just display the information directly without loading a shit ton of js.<p>You can tag or organize the data locally and cache it, or return it sorted to the nodes which serve it to others. People don&#x27;t give a shit about webpages for search, they care about information. The web is a big rss feed, and our old feedreader &quot;google&quot; stopped doing that well, and also we pay a massive privacy tax for that now.<p>I see this happening in ~2 years for really techie people and being standard in 5.<p>edit: elastic search, webkit, real time, distributed file systems, apache spark, google tensor flow. These ingredients will be used to make the new browser which browses information and <i>returns that information</i> not the actual web pages.
评论 #10922180 未加载
ericfrederich超过 9 年前
How does this project differ from ipfs?
andreapaiola超过 9 年前
Nice tech!
jsprogrammer超过 9 年前
Nice demo.
gionn超过 9 年前
are you a wizard?
knocte超过 9 年前
WebRTC will anyway become obsolete with IPv6, right?
评论 #10923417 未加载
Nux超过 9 年前
-1<p>Complains it cannot play the file for not having Chrome with Mediasource. Why not serve an ogg or webm for crying out loud?<p>Also, why auto-start the download?!<p>After the download is finished, where can I watch the video? There&#x27;s no link for watching it anywhere.<p>If I refresh the page the download starts again.<p>I realise this is just an experiment and kudos for that, but the author could have made some better choices re above.