Pausing/Resuming downloads
-
Does the server API have a way to handle pausing or resuming downloads?
I'm thinking about the situation where a user starts a download but then closes their DAW or the system crashes or some other interruption occurs and they need to resume where they left off.
-
Yes, I've implemented a method to resume a download, but it's highly experimental. Feel free to test it and give me feedback how it works though.
For some reason the docs don't show it, but there is a
DownloadObject
API class that has aresume()
method:HISE/hi_scripting/scripting/api/ScriptingApiObjects.h at b2593e45940c2db0b5757174b627fbe5ce4d3640 · christophhart/HISE
The open source framework for sample based instruments - HISE/hi_scripting/scripting/api/ScriptingApiObjects.h at b2593e45940c2db0b5757174b627fbe5ce4d3640 · christophhart/HISE
GitHub (github.com)
You create it with:
HISE/hi_scripting/scripting/api/ScriptingApi.h at b2593e45940c2db0b5757174b627fbe5ce4d3640 · christophhart/HISE
The open source framework for sample based instruments - HISE/hi_scripting/scripting/api/ScriptingApi.h at b2593e45940c2db0b5757174b627fbe5ce4d3640 · christophhart/HISE
GitHub (github.com)
-
@Christoph-Hart Thanks I'll check it out!