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 upTorrents available to stream in browser #1531
Comments
This comment has been minimized.
This comment has been minimized.
|
I do realize that only mp4 files would work in the browser, i'm not worried about filtering torrents by mp4 specific files as much as i don't understand how one could request a list of torrents that have web peers and the number of their peers at any given time. |
This comment has been minimized.
This comment has been minimized.
|
Hey @jaruba, If you run the tracker you can see all infoHashes which use your tracker and how many peers are leeching / seeding the torrent, this alone should be enough information to decide if there is sufficient peers in order to stream the file. Writing a simple API around the tracker, which either clients can access or the web server could use to determine which torrents to display, would be the easiest way to achieve this. As this is a question and not a issue, I'm going to close this but I'm happy to help and continue the conversation. |
This comment has been minimized.
This comment has been minimized.
|
I could obviously just run my own tracker and hope that people would use it, as if it's not used i wouldn't have any torrents on it to speak of. I could also interogate webtorrent trackers on a per infohash basis. But this site that i'm talking about, when you go on it, it only shows media that currently has web seeds available and it seems to load this data in 2-3 seconds, on request for the user. This made me think it literally requests a list of torrents with web seeds from the webtorrent trackers, which afaik shouldn't be possible. I guess it would also be possible to just filter torrents based on mp4 files, and request data on each from trackers, periodically. I just imagined this website was doing some magical call on the trackers for said data. (one call, as opposed to a per infohash call) |
This comment has been minimized.
This comment has been minimized.
|
@jaruba do you have a link to said website (assuming its legal) so I could get a better understanding of it? By the sounds of it you're saying they're indexing all WebTorrents and displaying those which still have peers seeding which sounds like an impossible task without running their own tracker. Are you sure the website isn't hosting the content themselves rather than indexing public torrents? |
This comment has been minimized.
This comment has been minimized.
|
I sent you an email (to your public email address shown on your github profile) with the link |
This comment has been minimized.
This comment has been minimized.
I'm sure their using public torrents and webtorrent, yes. |
This comment has been minimized.
This comment has been minimized.
|
@jaruba after looking at it I can only assume it scrapes torrent indexers, then scrapes the main WebTorrent trackers to check if there are any WebTorrent peers, if so, stores the infohash and periodically checks for peers. |
This comment has been minimized.
This comment has been minimized.
|
yeah, that's what i was afraid of too, it seems like overly complicated logic, but i don't really see any other possible way for them to do this either |
I ran across a site that uses webtorrent and seems to keep track of what torrents are available to stream in the browser at all times.
How would one keep track of all the torrents that have the required peers to stream in the browser with webtorrent? I'm guessing it's based on communication with webtorrent specific trackers? If so, there's still the question of how it can be done.