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

Suggestion fileSystem #311

Closed
MustafaSaleh opened this issue May 10, 2015 · 5 comments
Closed

Suggestion fileSystem #311

MustafaSaleh opened this issue May 10, 2015 · 5 comments

Comments

@MustafaSaleh
Copy link

@MustafaSaleh MustafaSaleh commented May 10, 2015

Hi Feross ,
I tried your https://instant.io/
Your idea is amazing, but as you know if seeders close the browser you will not have any peers,
so while I was working before with html5 I read somthing about how to work with fileSystem ,
Is that help to save streamed files and read any time when peers online?
I used this tut to did it ,
http://www.noupe.com/design/html5-filesystem-api-create-files-store-locally-using-javascript-webkit.html

@jaybekster

This comment has been minimized.

Copy link

@jaybekster jaybekster commented May 12, 2015

I think the best way is seeding a file on server by itself.
After uploading file to server start to seed this file on server to addition.
But i didn't find the soultion how to do it: if i seed this file, only uTorrent can download from this file and non of browser peers.

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented May 13, 2015

@EgyptionBoy Thanks for the suggestion. Right now, webtorrent uses an in-memory backing store in the browser. We should eventually store data on the filesystem so we can support downloading files larger than the user's memory, or 2GB which is the limit in Chrome. Until then, webtorrent in the browser is limited to the available memory on the user's machine.

There's already an issue for this here: #86

Even once we have browser storage working, there's still no way to have users seed files when they've close all tabs running webtorrent. That's just a limitation of the web platform, as far as I understand. This may change with Service Workers and specs like this one: Task Scheduler.

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented May 13, 2015

@EgyptionBoy I should also mention that I'm working on fixing bugs that cause webtorrent to use much more memory than necessary in the browser. There's an issue here where I'm debugging it: webtorrent/instant.io#3

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented May 13, 2015

@jaybekster You can seed files from a server using webtorrent-hybrid. Just run:

webtorrent-hybrid seed /path/to/file

and then the files should be available to web peers.

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented May 13, 2015

I'm going to close this issue since it's a duplicate of #86, but feel free to continue replying.

@feross feross closed this May 13, 2015
@lock lock bot locked as resolved and limited conversation to collaborators May 6, 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
3 participants
You can’t perform that action at this time.