jcputney / scorm-again

A modern SCORM JavaScript runtime library.
https://jcputney.github.io/scorm-again/
MIT License
213 stars 52 forks source link

Error - Unable to acquire LMS API, need implementation tutorial #571

Open abanghendri opened 1 year ago

abanghendri commented 1 year ago

Hi, is anyone can give example of scorm-again implementation I try implementing this package and getting this error image

Scorm package are the same used by https://github.com/jcputney/scorm-again/tree/gh-pages, but when I move and try to implement it, it still get that error, even I use same function like on that link which has lms.js, common.js, and another dependencies

I try to implement it on laravel project, and here's my index.blade.php https://pastebin.com/xfuJ2Ws8

thank you

jcputney commented 1 year ago

@abanghendri nothing jumps out to me as wrong here, other than the lmsCommitUrl pointing to /scorm rather than /scorm12, /scorm2004, or /aiic depending on the module you are trying to load. It's possible that an incorrect commit URL is throwing an error, which is causing window.API to not be set? I would start there at least.

HuzaifahLutaaya commented 1 year ago

There's no simple documentation and UI to show how everything works

iqueuelab commented 8 months ago

@abanghendri nothing jumps out to me as wrong here, other than the lmsCommitUrl pointing to /scorm rather than /scorm12, /scorm2004, or /aiic depending on the module you are trying to load. It's possible that an incorrect commit URL is throwing an error, which is causing window.API to not be set? I would start there at least.

I am trying to implement scorm-again to launch and track scorm progress in react application, but when trying to add events to window.APIits not triggering. Am I doing something wrong??? My Code is: image