Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please, close this issue. #1673

Closed
htorbov opened this issue Jul 21, 2019 · 1 comment
Closed

Please, close this issue. #1673

htorbov opened this issue Jul 21, 2019 · 1 comment
Labels

Comments

@htorbov
Copy link

@htorbov htorbov commented Jul 21, 2019

Please, close this issue.

@SilentBot1 SilentBot1 added the question label Jul 21, 2019
@SilentBot1

This comment has been minimized.

Copy link
Member

@SilentBot1 SilentBot1 commented Jul 21, 2019

Hi @htorbov

As mentioned in the API documentation, calling torrent.createServer() creates a HTTP server which dynamically downloads the needed torrent pieces to fulfill the HTTP request.

This means that using your example code, you are downloading the torrent's content to your webtorrent-hybrid client and then are serving the downloaded content from the server to the client who is making the HTTP request. The browser client isn't downloading the torrent directly, it's being "proxied" through the webtorrent-hybrid client as a webseed.

This functionality allows the initial seeding of content into the WebTorrent WebRTC swarm which is only currently being seeded on the BitTorrent TCP/UDP swarm.

Instant.io is a good, existing and usable, example to demonstrate how to gather and display the torrents statistics as you're wanting to display.

If you need any further help with this, feel free to continue the discussion in this thread and I'll happily help but as you have mentioned, this is a question and not a issue, so I'm going to close this.

Kind regards
Brad

@SilentBot1 SilentBot1 closed this Jul 21, 2019
@htorbov htorbov changed the title Stream video from torrent (NodeJS) Please, close this issue. Nov 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.