Questions tagged [webtorrent]

WebTorrent is a streaming torrent client for node.js and the browser.

WebTorrent is a torrent client written completely in JavaScript.

It can be used in a browser as well as a Node.js backend.


Useful Links


Related tags

61 questions
11
votes
1 answer

Can you use webtorrent for distributed live video broadcasting

I want to use p2p webrtc for live video streaming through webtorrent. https://github.com/feross/webtorrent It can apparently stream video but can it take as input webcams and other sources? How would you do that? Thanks.
Harry
  • 52,711
  • 71
  • 177
  • 261
10
votes
1 answer

Issues Streaming MP4s with Webtorrent

I'm running a Node Server that I want to stream videos from magnet links that uses WebTorrent(https://webtorrent.io/docs). When I run this, it appears as if the file is not being correctly referenced even though I have set a variable as the .mp4…
Jasch1
  • 525
  • 2
  • 8
  • 22
8
votes
2 answers

How to add standard media controls to Google Cast app?

I'm developing Google Cast custom receiver app using WebTorrent (https://webtorrent.io, https://github.com/feross/webtorrent) and Google Cast sender app using JavaScript (Chrome) SDK. The idea of my app is sending torrent id (magnet URI like…
8
votes
1 answer

How to use webtorrent in browser?

I have some trouble with the the example showed in https://github.com/feross/webtorrent#usage I'm trying to use the code in browser. So I first create a file called app.js app.js var WebTorrent = require('webtorrent') var concat =…
Chuang Fu
  • 309
  • 1
  • 6
  • 16
5
votes
4 answers

Sync clients' files with server - Electron/node.js

My goal is to make an Electron application, which synchronizes clients' folder with server. To explain it more clearly: If client doesn't have the files present on the host server, the application downloads all of the files from server to…
4
votes
0 answers

How seeding-downloading works in nodejs without port forwarding (e.g. WebTorrent)?

I'm trying to set up a connection over TCP between two devices on different networks in node. I've been reading all over that to connect over TCP two devices I either need to set up port forwarding on the router, ore use ICE connections (good…
don
  • 4,113
  • 13
  • 45
  • 70
4
votes
1 answer

How much do BitTorrent and WebTorrent have in common?

I recently heard about WebTorrent and decided to try one of those audio player javascript demos to see if I could make it play a random MP3 from BitTorrent network. It didn't work and I contacted the author to find out that those are "two separate…
d33tah
  • 10,999
  • 13
  • 68
  • 158
4
votes
1 answer

How to start with WebTorrent?

I have some idea for WebTorrent. I have some experience with JavaScript and jQuery, but I never use Node.js or Browserify. Could someone explain me how to use the following simple code? var client = new WebTorrent() var torrentId =…
Sokołow
  • 521
  • 5
  • 18
3
votes
3 answers

Reverse ssh tunnel for p2p downloads

I am looking to implement a solution where I use a remote bittorrent client on the cloud server and then download the files to local system over http. This is expected to improve my bandwidth and overcome blacklisting my ip(suppose if I am behind…
v78
  • 2,803
  • 21
  • 44
3
votes
0 answers

WebSocket connection to 'wss://tracker.btorrent.xyz/' failed: Error during WebSocket handshake: Unexpected response code: 522 {webtorrent}

Hello fellow homo sapiens, I seem to have reached a dead end here and would require your assistance. I am using webtorrent-hybrid to display a torrent, however when I use client.add to download my torrent, I get this error, ICE failed, add a TURN…
Rishi
  • 85
  • 1
  • 1
  • 8
3
votes
1 answer

Seeding a file using Webtorrent

I'm trying to seed an html file using WebTorrent in Nodejs. I get callback from WebTorrent which indicates that the client is started seeding but when I copy-paste the hash on the client-side to download the file, nothings happened. Here is my code…
Afshin Mehrabani
  • 33,262
  • 29
  • 136
  • 201
2
votes
1 answer

Is there a way to stream a torrent with web torrent to a video tag

This code is the code on their website that downloads torrents const WebTorrent = require('webtorrent') const client = new WebTorrent() // Sintel, a free, Creative Commons movie const torrentId = 'magnet:?' client.add(torrentId, function…
dontbanmeplz
  • 41
  • 1
  • 5
2
votes
0 answers

Issue Streaming Video with WebTorrent

I am working on streaming videos with WebTorrent and For some links videos are not rendering, like…
welkro
  • 105
  • 9
2
votes
1 answer

Does not download a file by magnet links

This is an example from the documentation. var client = new WebTorrent() var torrentId =…
Ascolon
  • 97
  • 1
  • 7
2
votes
0 answers

WebTorrent creating a server through adding multiple torrents magnet's

I am trying to create a Node.js server that loads multiple torrent magnets and then serves a static directory to that .mp4 (endpoint), similar to what the demo is doing for a single torrent. const WebTorrent = require('webtorrent') var client = new…
ABC
  • 2,068
  • 1
  • 10
  • 21
1
2 3 4 5