asapach / peerflix-server

Streaming torrent client for Node.js with web ui.
MIT License
1.31k stars 586 forks source link

Continue download when navigating away from page #147

Closed dachinat closed 6 years ago

dachinat commented 6 years ago

Hello, this is a really nice package and thank you for bringing it.

I have a question, perhaps a silly, did not dig into the internals yet. Is it possible to continue downloading a file from torrent/magnet link after navigating away from actual page? Closing tab?

Thanks, I'd like to receive any help on this (maybe implementing if not supported).

asapach commented 6 years ago

Sure, all the work is happening in the Node process, so it will keep downloading until you terminate it. Browser is just the UI.

dachinat commented 6 years ago

@asapach, thanks for replying. Right now when I click on Download button, a progress-bar will appear and an actual download will start (in Chrome downloads), however if I close the window (tab) where progress-bar appears, download terminates.

Is it something with my configuration or is this expected? I'd like to continue downloading file when that window (tab) is closed. Thanks.

asapach commented 6 years ago

I'm afraid I lost you:

...when I click on Download button, a progress-bar will appear and an actual download will start (in Chrome downloads)

You mean this Download button? image There should be nothing in Chrome downloads until you click the file link.

dachinat commented 6 years ago

@asapach Right, "when you click the file link", sorry my bad. So, download will start when you click the file link, however when I close a tab where I made a click, download stops, in Chrome download progress it freezes.

asapach commented 6 years ago

Generally I use peerflix-server for video, and as such I don't download the files, but instead use video streaming either in the browser for MP4, or using VLC: https://www.vlchelp.com/stream-online-videos-pc-vlc-media-player/

asapach commented 6 years ago

I've just tried downloading in Chrome anyway: when you close the tab it keeps downloading - it can take a while, because, you know, peer-to-peer. When you close the browser, there's nothing I can do to keep the download running, sorry.

dachinat commented 6 years ago

When you close the browser

Yes, of course, I'm aware. I was talking about tab.

when you close the tab it keeps downloading

There's something with my configuration then, thanks a lot for looking into this.

I'll try to get it working. Thanks!