Forum Discussion

Miguelvanden090's avatar
Miguelvanden090
Community Member
23 days ago

Custom resume function

Hello,

I’m looking for a way to enable resume functionality for a Storyline course that has been exported for the web. The course runs inside a custom application that does not support SCORM packages.

My goal is to store the learner’s progress (resume location) in a database. When a user logs in and launches the training, I want the course to resume from where they left off.

Does anyone know if this is possible, and how it could be implemented?


Kind Regards!

3 Replies

  • Hello Miguelvanden090​

    Thanks for reaching out! I understand you're looking to have your Storyline course resume where your learners previously left off in web publish. 

    • What database are you using to host your course?
    • Have you made any changes to your course's Player Properties?

     

    As a first step, I recommend ensuring that you've selected your Resume Options to Always resume or Prompt to resume, depending on your needs. 

    If you have any other questions, we'd be happy to take a closer look at your project file in this thread or privately in a support case

    Looking forward to hearing from you! 

    • Miguelvanden090's avatar
      Miguelvanden090
      Community Member

      Hello LucianaPiazza​,

      Thank you for your feedback.

      The database I’m using is MySQL, and I haven’t made any changes yet to the Player properties.

      I’m familiar with the built-in resume options of the player, but I’m looking for a solution to store resume data in the database based on the logged-in user. Since the application is not an LMS and does not support SCORM, I’m using a web export and want to handle the rest with manual coding.

      Users log in to the application, but the training itself is not aware which user is logged in. My idea is to store the user along with the resume data in the database. Every time the training starts, the application will load the user information. If the user has any saved data, the training can resume from that point.

      Can the web-exported version provide resume data, or do I need to code that manually? Also, what data does the resume function expect when starting the training?

      Thanks for your help so far!

      • StevenBenassi's avatar
        StevenBenassi
        Staff

        Hi Miguelvanden090​!

        Glad to see Luciana has been helping you!

        Storyline’s built-in resume behavior is designed for LMS use, where it stores a compressed suspend-data string and retrieves it on return.

        In Web output, Storyline can resume in the same browser, but that behavior relies on browser storage rather than an exposed data format you can capture or reuse. Because of that, Web-published courses don’t provide a resume package you can store in your own database or reload manually. The course also isn’t aware of which user is logged in to your application.

        To support database-driven resume, you’d need custom code to capture the specific state you want to save and then reapply it when the user returns. We want your published content to work smoothly in all supported browsers, so we don't officially support modifying the published output. However, other folks in the community may have discovered a workaround to share with you. I suggest posting this inquiry in our dedicated JavaScript group!