dhodges47 / SCORM-LearningManagementSystem

Open Source SCORM Learning Management System demo
MIT License
142 stars 71 forks source link

many of SCORM courses running on this , but i have a SCORM course that is not running. #9

Open NidhiAshree opened 4 years ago

NidhiAshree commented 4 years ago

Draft 5s training Module SCORM 1.2.zip

dear sir, please check attached scorm course that is not open in scorm player. I checked on scorm cloud where it was working fine . But here something happens wrong ..

dhodges47 commented 4 years ago

This course is throwing javascript errors when it runs. Here is screenshot of the error: Screen Shot 2020-06-12 at 12 15 31 PM I did some research on CPXHRLoader.js. Apparently it is from courses produced by Captivate. It is trying load images in json format (I have never heard of images in json format, by the way). A commenter in a discussion in the Adobe forums ( https://community.adobe.com/t5/captivate/error-in-javascript-for-cpxhrloader-js-every-time-i-publish-as-html5-in-captivate-9/td-p/8739896?page=1) says that it may be that the web server doesn't support the json mimetype. You could try adding these lines to startup.cs in the Configure method: var provider = new Microsoft.AspNetCore.StaticFiles.FileExtensionContentTypeProvider(); // Add new mappings provider.Mappings[".json"] = "application/json"; provider.Mappings[".jsonp"] = "application/javascript";