open source scorm player pure javascript and html?

℡╲_俬逩灬. 提交于 2019-12-10 12:55:35

问题


Is there any scorm player which is purely based on the javascript and html . i do,t wanna use any server side languages for it . I found an open source Scormpool but it is just playing the scorm its not tracking . and no documentation is available . If you guys know any please help .


回答1:


I was searching for similar solution myself and was unable to find anything.

So after struggling with docs and bits found online I have created this:

https://bitbucket.org/jugger0/tsp

It is far away from a fully-featured player but can be used as a starting point.

Maybe someone will find it useful.




回答2:


This may get you started as well, or you can tailor it to your own needs.

https://github.com/skfriese/simple-scorm-api

It's a rudimentary SCORM 1.2-only RTE test environment in a single HTML file that I whipped up for my own needs years ago. I only recently elected to clean it up to share with others. It's easy to throw into your package folder and spin up from there. The SCO will assume it's running in an LMS, which is really all that's necessary for testing most of the time.

You can update the default values in the Javascript, and the data will be stored in LocalStorage or fall back to cookies if necessary. It will also "attempt" to read some values from a manifest, should one exist. It does not support multi-SCO packages or any other complex organizational features of SCORM.

The Reload Tools have been embedded into the page as well, so you'll find that most of the data elements will be validated.

Hope this helps someone.




回答3:


It would be helpful if the desired result was better defined. Do you just want to be able to run scorm content locally without errors?

The initial question mentions that the content is playing but not tracking... where would it track to? Are you looking to have things stored for later retrieval on the same system, or potentially on any system? If this is the case, where would it be stored? In the browser (single system only and prone to deletion with clearing cookies, cache, etc), or to a server (accessible from multiple systems)?

If to a server, it is going to require at least some server side language, though you could potentially use something like node.js which would let that language still be javascript.




回答4:


Claude Ostyn's SCORM 1.2 Test Wrap will act as a standalone in-memory "LMS" for SCORM 1.2 courses.

There is some setup required; though it will work if you run it directly in the browser, you may find it more effective running it (and your course) from a webserver.

Available here: https://www.jcasolutions.com/development/code-repository/func-startdown/7/

This used to be part of a resource kit from Click2Learn. Though Rustici (scorm.com) has adopted some of it, I wasn't able to find the original file there.

Instructions and more details may be found by running "launchme.html" directly.

I've found this one of my more valuable testing tools.

A SCORM 2004 version, and many more useful articles and tools may be found at Claude Ostyn's website http://www.ostyn.com. He passed away several years ago, but someone has kindly kept the site up.



来源:https://stackoverflow.com/questions/17018858/open-source-scorm-player-pure-javascript-and-html

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!