Wild media server (UPnP, DLNA, HTTP)
http://wildmediaserver.com/forum/

Feature request
http://wildmediaserver.com/forum/viewtopic.php?f=18&t=2981
Page 1 of 1

Author:  S@gittarius [ Wed Jul 31, 2019 4:07 pm ]
Post subject:  Feature request

Hi Eugene,
I would like to make a small feature request as follows.
Would you please add an optional possibility for WmsDownloadURLToFile function to append instead of overwriting the target file?
The function could look like this:
WmsDownloadURLToFile(const aURL, aFileName: string; const aHeaders: string = ''; aAsync, aAppend: Boolean = False): Boolean

If "aAppend" parameter is not supplied the function should overwrite the target file as it is now.
If "aAppend" parameter is passed and TRUE the function should append downloaded content to the target file. If file does not exist prior that the function should create it.

The intended purpose of such a functionality is to make use of partial downloads. Most content providers throttle progressive downloads thus getting big files is prone to errors. By using byte ranges one could overcome these shortcomings. Another use case is when downloading segmented MPD streams. In both cases chunks/segments after the very first one have to be appended to the target file.

Please let me know if such a functionality already exists. An example code snippet would be greatly appreciated.

Thank you in advance!
Regards

Author:  Eugene [ Thu Aug 29, 2019 7:13 pm ]
Post subject:  Re: Feature request

Hi,

Version 3.27
Quote:
function WmsDownloadURLToFile(const aURL, aFileName: string; const aHeaders: string = ''; aAsync: Boolean = False; aAppend: Boolean = False): Boolean

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/