Scorm plugin
The Scorm plugin allows to create Scorm resources in Claroline platform. It supports Scorm 1.2 and Scorm 2004.
Scorm API integration
The APIClass
object exposed in api.js
is responsible of the interactions with the scorm package.
The APIClass
can be retrieve from the window
object :
1
2
3
4
window.API
window.api
window.API_1484_11
window.api_1484_11
Available functions
Here is the list of exposed functions.
Scorm 1.2
1
2
3
4
5
6
7
8
APIClass.LMSInitialize(arg)
APIClass.LMSFinish(arg)
APIClass.LMSGetValue(arg)
APIClass.LMSSetValue(argName, argValue)
APIClass.LMSCommit(arg)
APIClass.LMSGetLastError()
APIClass.LMSGetErrorString(errorCode)
APIClass.LMSGetDiagnostic(errorCode)
Scorm 2004
1
2
3
4
5
6
7
8
APIClass.Initialize(arg)
APIClass.Terminate(arg)
APIClass.GetValue(arg)
APIClass.SetValue(argName, argValue)
APIClass.Commit(arg)
APIClass.GetLastError()
APIClass.GetErrorString(errorCode)
APIClass.GetDiagnostic(errorCode)