Hi,
I'm attempting to set up a local test environment for getting scorm data from spoor via pipewerks and sending it to an analytics platform. Here's what I've done so far; made sure spoor is installed and enabled with logging turned on, run grunt server-scorm to launch course in scorm mode, output is now displayed on scorm_test_harness.html and I can see scorm data in the console. It says on the wiki page for spoor:
If you need to get access to the SCORM API in your own code, /js/scorm/wrapper.js
exposes a number of functions for your use (via a singleton object called ScormWrapper). Requiring /js/scorm/scorm.js
will return the instantiated wrapper for you.
I'm wondering what the best way to require scorm.js is. Is this something I should do with the scriptLoader.js file? Correct me if I'm wrong but I assume once the require is set up that file will be in the build folder and I can link to it.
Once I have access to the wrapper what is the recommended way to query the data and manipulate it? Is this intended to be done from the scorm_test_harness.html page with javascript or is there another file that was intended for this function?
I might have a need to record custom data depending on how clever I can be about associating and formatting the data adapt already records, but that's a whole other topic. Just a basic explanation of the process for how to work with scorm data in a local test environment would be much appreciated.