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

Stop/Pause download button on the webtorrent.io website. #580

Closed
Saheb opened this issue Jan 18, 2016 · 4 comments
Closed

Stop/Pause download button on the webtorrent.io website. #580

Saheb opened this issue Jan 18, 2016 · 4 comments

Comments

@Saheb
Copy link

Saheb commented Jan 18, 2016

I opened the website and it started with a bang, loved the quickness, but as I couldn't find a way to stop or pause the download, I had to close the tab.

There should be a way to stop or atleast pause the download, for giving me an option to be on the website without using 129 MB of my data.

@shubh1m
Copy link

shubh1m commented Jan 21, 2016

@Saheb @feross I would like to work upon this.

@DiegoRBaquero
Copy link
Member

There's no way to completely pause a torrent once started right now. I don't know how it would affect the UX if you had to click or tap a button to start.

I, however, would like to have a much smaller video as the demo. See webtorrent/webtorrent.io#270

@feross
Copy link
Member

feross commented Feb 13, 2016

If you remove all the "selections" from the file, then it should stop downloading. You have to destroy any FileStream objects you might have.

var stream = torrent.files[0].createReadStream() // say I have a stream 
stream.destroy() // i need to destroy it

And deselect any ranges I may have selected:

torrent.deselect(start, end, priority)

@lock
Copy link

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.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants