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.

Show HN: A JavaScript SDK to reduce video streaming costs

69 pointsby Anil1331over 4 years ago

11 comments

umarnizover 4 years ago
Heads up before opening the link, your IP is leaked to anyone who is watching the same video.<p>Have spent only a couple of minutes looking at it but it works by connecting to a websocket server where everyone who watches the video announces themselves, when 2 people are watching the same video a WebRTC data channel is opened for streaming video content.<p>Have you guys considered the security aspect of such a service? Specially a data channel open between 2 anonymous party is a very nice attack vector imo.
评论 #24962085 未加载
评论 #24962222 未加载
评论 #24961666 未加载
ignoramousover 4 years ago
There&#x27;s been an explosion in P2P CDN space ever since u&#x2F;feross&#x27; PeerCDN hit the scene [0]. At least one was funded by YC [1]. Some of the others are opensource [2][3].<p>Some day webtorrent itself would be capable of streaming large files [4]. And of course, there&#x27;s peertube [5].<p>[0] <a href="https:&#x2F;&#x2F;gigaom.com&#x2F;2013&#x2F;03&#x2F;28&#x2F;peercdn-p2p-cdn&#x2F;" rel="nofollow">https:&#x2F;&#x2F;gigaom.com&#x2F;2013&#x2F;03&#x2F;28&#x2F;peercdn-p2p-cdn&#x2F;</a><p>[1] <a href="https:&#x2F;&#x2F;www.ycombinator.com&#x2F;companies&#x2F;1559" rel="nofollow">https:&#x2F;&#x2F;www.ycombinator.com&#x2F;companies&#x2F;1559</a><p>[2] <a href="https:&#x2F;&#x2F;p2p.cdnbye.com&#x2F;en&#x2F;" rel="nofollow">https:&#x2F;&#x2F;p2p.cdnbye.com&#x2F;en&#x2F;</a><p>[3] <a href="https:&#x2F;&#x2F;p2pcdn.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;p2pcdn.io&#x2F;</a><p>[4] <a href="https:&#x2F;&#x2F;github.com&#x2F;webtorrent&#x2F;webtorrent&#x2F;issues&#x2F;86" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;webtorrent&#x2F;webtorrent&#x2F;issues&#x2F;86</a><p>[5] <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;PeerTube" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;PeerTube</a>
评论 #24962037 未加载
fxtentacleover 4 years ago
As a user, I block and personally hate those traffic leeches. They don&#x27;t reduce streaming costs, they just push them onto unsuspecting users. I&#x27;ll be billed for the additional upload by my ISP if I open their video on my phone. Plus the idea isn&#x27;t even new. There have been streaming video BitTorrent clients implemented in Javascript for some years already.<p>As an admin, if anyone in my wifi opens a page using this technology, their increased upload traffic will slow down or potentially even block more important things like off-site backups.<p>That&#x27;s why companies and universities tend to block p2p &quot;CDN&quot;s. Or at the very least, they heavily throttle it, which means your watching experience suffers.
评论 #24962885 未加载
difosforover 4 years ago
It&#x27;s an interesting idea, but I don&#x27;t think it really works at scale. Reminds me of Spotify starting out with peer to peer and then abandoning it. Especially since your users won&#x27;t accept the costs being shifted to them and their streaming experience being most likely negatively affected if you&#x27;re apparently a big player. Not to mention the myriad of technical hurdles you&#x27;ll run into once you start to try to use this world wide. Perhaps if you&#x27;re only streaming from and to free spirited people who understand what&#x27;s going on and want to share the burden.
评论 #24961207 未加载
dansnerdover 4 years ago
No comment on the actual tech (yet), just pointing out you&#x27;ve got a few different numbers floating around on different pages.<p>The title here mentions reducing costs by 90%, but on the homepage you list reducing cost by 50% (twice), reducing bandwidth by 99%, and offloading 90% of bandwidth. On the github page it lists reducing costs by 30%<p>From a first-read perspective those are vastly different numbers (30-99%), for what all sound like the same thing (reducing bandwidth by 99% sounds like it should reduce my costs by 99%).<p>Might want to be more specific (or pick a single number).
评论 #24961096 未加载
Anil1331over 4 years ago
Hi everyone<p>I am working on a web sdk which can reduce video streaming costs of CDN by up-to 90% using a hybrid decentralized load sharing technology. I have opened it up for beta-access for developers to try it out. Looking for feedback w.r.t the technology and any features you would want to have.<p>A web demo is available here <a href="https:&#x2F;&#x2F;api.peervadoo.com&#x2F;test" rel="nofollow">https:&#x2F;&#x2F;api.peervadoo.com&#x2F;test</a> . Click on Add new peer to see the tech in action<p>Sdk link :- <a href="https:&#x2F;&#x2F;github.com&#x2F;vadootvpeer&#x2F;sdk-javascript" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;vadootvpeer&#x2F;sdk-javascript</a><p>Happy to answer any queries
评论 #24959795 未加载
评论 #24961007 未加载
MaxBarracloughover 4 years ago
See also PeerTube, which is Free and Open Source software, discussed 10 days ago.<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=24856243" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=24856243</a><p><a href="https:&#x2F;&#x2F;joinpeertube.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;joinpeertube.org&#x2F;</a>
tehlikeover 4 years ago
Putting the burden on the user for significantly higher $&#x2F;gb. Doesn&#x27;t just shift the total cost, it actually increased it quite a bit.<p>It&#x27;s be nice if webrtc was somewhat more opt in.
评论 #24962845 未加载
wayneftwover 4 years ago
I was just looking into how hard it would be to build a Twitch clone, given that Twitch is declaring war on it&#x27;s viewers by forcing unblockable pre-roll ads.<p>Many people including me have just stopped watching Twitch because of the new ads, but I&#x27;d love to help build a movement towards a no-advertising-ever streaming site.<p>If we can bring the cost of streaming the video content down I think it&#x27;s doable.
评论 #24961320 未加载
评论 #24961584 未加载
评论 #24963680 未加载
littlestymaarover 4 years ago
The idea is sexy on paper, and it&#x27;s been tried several times since webRTC came out. But the execution, both technically and commercially, is really hard to get right. I wish you good luck.
im_darioover 4 years ago
Kudos, looks really good. What is the pricing?
评论 #24960941 未加载