How to create a simple Scorm Player using HTML & JavaScript

Prajwal picture Prajwal · Feb 25, 2017 · Viewed 9.6k times · Source

I am new to SCORM & I am looking to create a simple SCORM player that just display the SCORM package content, no tracking n other things, only just play the content. I have searched everywhere on internet but still no luck! Also I don't want to use anything like scorm.com engine and any other paid service. Moodle & Scormpool also did't help much. I want a code that plays scorm packages on my browser whether in html, javascript or php.

Answer

Mark picture Mark · Mar 1, 2017

So with no tracking and just "play the content" your essentially just launching a html file. Any SCORM CAM Package typically has a imsmanifest.xml. You'd need to be able to parse that, and then generate a one to many type Table Of Contents to present and play the content like you mention. You can perform that in any of the desired scripting languages you mention. Any open source project you find will most likely be very old or abandoned or have far too much dependancies to even bother with. You simply want to know how to parse XML, built a TOC view, and manipulate launching the content in a IFRAME, new Window, Popup Window or Tab.