scorm-again icon indicating copy to clipboard operation
scorm-again copied to clipboard

Error - Unable to acquire LMS API, need implementation tutorial

Open abanghendri opened this issue 3 years ago • 3 comments

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

abanghendri avatar Nov 01 '22 01:11 abanghendri

@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.

jcputney avatar Mar 31 '23 14:03 jcputney

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

HuzaifahLutaaya avatar Jun 01 '23 11:06 HuzaifahLutaaya

@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.API its not triggering. Am I doing something wrong??? My Code is: image

iqueuelab avatar Jan 07 '24 13:01 iqueuelab