Comments (2)
@bevdokimov thanks I'm glad its helped people get exposed to SCORM in a Open Source capacity.
So SCOBot from memory is detecting the latency for you.
Lets see if I can dig into the setInteraction method quick -
You need a id
for sure and the original timestamp is calculated based on a prior interaction to calculate the latency.
I took a look at some of the error handling here:
https://github.com/cybercussion/SCOBot/blob/master/QUnit-Tests/js/scorm/SCOBot.js#L1361
Essentially you'd want to at minimum pass the proper types. Least the way I wrote it I assumed you'd be passing a interaction object as defined there (even empty arrays and data types) so you could populate the same object. If your familiar with say MongoDB you could upsert data against a object and this method doesn't appear to manage that least how I interpret your attempting to.
So maybe that will give you a bread crumb with example to at least have a Interaction object which I believe the main reason I did it like that was to maintain journaling. Least with some of the code I'm seeing there its testing to see if you are passing an Array and if not sending a log message that an array wasn't found.
Thats not necessarily bad although flagged as a error. Its just letting you know (because it happens) you didn't specify it.
Also use SCOVerseer to evaluate your interaction data if you want to see if you are getting the result you are looking for. It may be working after all?
from scobot.
Closing this out. Let me know if you have any further issues or debugging needs.
from scobot.
Related Issues (10)
- Trouble with scorm.setvalue('adl.nav.request', 'continue'); HOT 12
- Suspend data is null after refreshing the page when the course is launched very first time. HOT 1
- "use strict" Causes a 301 Error in Pegasus With Chrome HOT 7
- Tests always expect Pacific time HOT 2
- happyEnding not working when closing SCO via browser exit button HOT 3
- SCORM Player HOT 2
- AICC Player HOT 1
- Can you use SCObot with scormpool player to emulate an LMS> HOT 3
- cmi data not saved HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scobot.