Comments (6)
Here's a beta version you can try out. I removed the DELETE and FILE_SHARE_DELETE flags from the CreateFile function. Those flags allowed the program to rename or delete a file while it's in use. I'll have to figure out a convenient way (probably an option) to allow both things.
HTTP_Downloader_32_1.0.5.1_Beta.zip
HTTP_Downloader_64_1.0.5.1_Beta.zip
from httpdownloader.
Thank youuu 😊 I can confirm that VLC can read the file while it's downloading now.
(Tho, I realized now that there is another small inconvenience for this use case: when using only one download stream (download parts), I think instead of using sparse files or dense files (whether zeroed or not), HTTP_Downloader should use normal "append" to file so that the video player (like VLC) would hit the end of the file and stop while waiting for the next frames instead of continuing to play the empty region.)
But, honestly, just sharing my idea, unless many other people want this, I think it's just not worth the hassle, especially dealing with when someone starts a single-stream download then switches it to multi-parts... And really, pausing VLC manually and waiting for the buffering a bit should be more than enough. And it's so much better than having to wait for a 24GB file to complete before playing it 😅
Again, thank you so much for your time and for the update.
from httpdownloader.
Sorry for such a late reply. I've tried implementing this because it's something that I've wanted to be able to do also, but I could never figure it out. It has to do with file access rights and probably other stuff. Maybe one of these days I'll solve it.
from httpdownloader.
@erickutcher, According to a stackoverflow, you need to remove other file permissions when creating the file: "Writer [processes] must use FILE_SHARE_READ, Reader [processes] must use FILE_SHARE_READ | FILE_SHARE_WRITE".
So just search for "FILE_SHARE_READ" and make sure other FILE_SHARE_X are removed. I don't know if it's necessary to remove FILE_SHARE_DELETE or not but you can just remove it since it's fine to require the user to stop the download before deleting the file.
Hope this helps 😊
from httpdownloader.
I don't know if doing an append type download will have any effect. This link should download as a chunked transfer: https://filesamples.com/samples/video/mkv/sample_1280x720_surfing_with_audio.mkv
HTTP Downloader will download chunked transfers by appending to the end of the file. These types of downloads will show a "?" in the File Size column since their file size isn't known from the start.
VLC seems to bail when it hits a premature end of file.
from httpdownloader.
I see what you mean! Something fishy is going on. Because, I tried a few files and non of them made VLC wait.
I swear it happened before (the VLC bar shows an orange ping pong loading thing, while some other program like chrome is downloading it). But I can't now find any video to show this. And also this has nothing to do with HTTP_Downloader, I tested by downloading with Chrome and VLC still ended the playback instead of waiting.
So yeah, I was wrong in assuming that the file writing method was the one causing the issue.
from httpdownloader.
Related Issues (20)
- system proxy auto config support HOT 4
- URL Drop window and system tray icon disappear after some time HOT 5
- Whether you can add the HLS download function, in fact, is also a http download. HOT 3
- Quick File Allocation HOT 5
- 1.0.4.9 - Download issue with FlashGot: Progress Failed HOT 5
- Improved Options - Reset to Defaults HOT 1
- Dark Color Scheme for Download List (Dark Mode app) HOT 1
- Use tab title as filename in Browser HOT 1
- Deleting a failed download when a new download of the same name is downloading removes the new download HOT 1
- There is no way to get the Chrome extension to work HOT 6
- Bugs: Command line options to add url failed HOT 1
- Multiple instances are launched with a large amount of additions. HOT 7
- "The server returned an invalid response to our download request." when downloading via extension under VPN extension HOT 3
- Add Support for Checksum and Signature Files HOT 1
- proxy problem ? HOT 2
- remove and delete does not delete local files HOT 2
- VLC download failing checksums HOT 1
- The number of download parts cannot be updated HOT 1
- Option to "always ask where to save files" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from httpdownloader.