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

Stream torrent without downloading the file #1027

Closed
ritz078 opened this issue Jan 25, 2017 · 2 comments
Closed

Stream torrent without downloading the file #1027

ritz078 opened this issue Jan 25, 2017 · 2 comments

Comments

@ritz078
Copy link

@ritz078 ritz078 commented Jan 25, 2017

Is there a way to stream the torrent directly. Currently it saves the file which is being streamed.

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Jan 25, 2017

No, torrent clients need to be able to share files with others while they download, so the data needs to be stored somewhere. When using webtorrent in node, by default that place is the file system.

If you're willing to write code, you can store data in-memory by passing a custom store option as documented here: https://github.com/feross/webtorrent/blob/master/docs/api.md#clientaddtorrentid-opts-function-ontorrent-torrent-

You can set that option to use this package: https://www.npmjs.com/package/memory-chunk-store

@feross feross closed this Jan 25, 2017
@lock

This comment has been minimized.

Copy link

@lock lock bot commented May 4, 2018

This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue.

@lock lock bot locked as resolved and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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.