Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upWhat are the requirements for a torrent file to play in a browser? :) #1648
Comments
This comment has been minimized.
This comment has been minimized.
|
Also, if I use a magnet link I get no errors, but nothing plays. All of this works in webtorrent desktop, but not on my own html page. |
This comment has been minimized.
This comment has been minimized.
Sorry for stating the obvious, but you need to send the
If it works on Webtorrent Desktop and not in the browser, most probably the torrent you are trying to download has no webtorrent peers. |
This comment has been minimized.
This comment has been minimized.
Is it possible to load a local .torrent file? I have tried this and this does not work either? Do I need to add my own tracker? If so, how? |
This comment has been minimized.
This comment has been minimized.
|
Also, for some reason, it seems like it won't even load a local .torrent file? No errors in console, it just won't load the video. |
This comment has been minimized.
This comment has been minimized.
|
Interestingly enough, if I try to do: torrent.numPeers and console.log this out, it always is showing 0, but the website with the torrent says it has over 300 seeders. |
This comment has been minimized.
This comment has been minimized.
|
It seems to work in webtorrent terminal interface, but not in a web browser :( Server running at: http://localhost:8000/0/3bad16d49a621396c9ab6aec04facb960dbf2 Speed: 128 KB/s Downloaded: 1.7 MB/352 MB Uploaded: 672 KB S 172.83.210.200:30937 0 B 0 B/s 0 B/s |
This comment has been minimized.
This comment has been minimized.
|
Is there a reason why we cannot give a torrent url and just simply play a video? What are the requirements that a .torrent file must have for it to play in a browser? |
This comment has been minimized.
This comment has been minimized.
|
+1 |
This comment has been minimized.
This comment has been minimized.
|
From the WebTorrent FAQ:
|
This comment has been minimized.
This comment has been minimized.
|
Also, see #1672 for a further explanation. |
What version of WebTorrent?
Latest
What operating system and Node.js version?
Mac OSX, I'm not using Node.js.
What browser and version? (if using WebTorrent in the browser)
Chrome
What did you expect to happen?
Video play
What actually happened?
Error
I'm trying to figure out how to get web torrent to play a video, but I'm getting some weird errors.
I'm trying to play videos directly from .torrent files hosted on other websites.
When we go to the chrome console, we get this:
I also get this: