HISE Logo Forum
    • Categories
    • Register
    • Login

    Pausing/Resuming downloads

    Scheduled Pinned Locked Moved Scripting
    serverdownload
    3 Posts 2 Posters 410 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • d.healeyD
      d.healey
      last edited by

      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.

      Free HISE Bootcamp Full Course for beginners.
      YouTube Channel - Public HISE tutorials
      My Patreon - HISE tutorials

      1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart
        last edited by

        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 a resume() method:

        https://github.com/christophhart/HISE/blob/b2593e45940c2db0b5757174b627fbe5ce4d3640/hi_scripting/scripting/api/ScriptingApiObjects.h#L364

        You create it with:

        https://github.com/christophhart/HISE/blob/b2593e45940c2db0b5757174b627fbe5ce4d3640/hi_scripting/scripting/api/ScriptingApi.h#L987

        d.healeyD 1 Reply Last reply Reply Quote 1
        • d.healeyD
          d.healey @Christoph Hart
          last edited by

          @Christoph-Hart Thanks I'll check it out!

          Free HISE Bootcamp Full Course for beginners.
          YouTube Channel - Public HISE tutorials
          My Patreon - HISE tutorials

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          15

          Online

          2.0k

          Users

          12.6k

          Topics

          109.8k

          Posts