I am using a bit tinkered ADL Technical Team SCOFunctions and APIWrapper scripts, which are tracking data only from last SCO item selected, before page unload, as you can see in SCORM API log.
After some research I found out that moodle itself tracks SCO item start time, and sets it as complete just after activation. But it doesnt set the end time.
I think the solution may be if we can somehow catch the navigation event for the iframe, and then set and commit session_time variable, but I don't fully understand how to implement this.
Scorm API activity log, sample SCORM package with modified js files, and scorm activity report included.
Please help me with this, I am stuck for days with this issue.