我有一对由swfs和玩家组成的SCORM包。然而,当用户从LMS启动内容时,播放器被初始化不正确或被破坏,当然它不能正常工作和运行。该软件包的控制台日志可能会提供一个想法。
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check
http://xhr.spec.whatwg.org/.
Initializing SCORM class...ExternalInterface.available evaluates true.
SCORM.isAvailable() evaluates true. SCORM class file check, ready.
SCORM.connect() called from class file
connection.initialize called.
SCORM.API.find: API found. Version: 2004
API: [object Object]
SCORM.data.get(cmi.completion_status) value: unknown
__connectionActive: true
SCORM.data.get(cmi.location) failed.
Error code: 403
Error info: hata
SCORM.data.get(cmi.location) value:
SCORM.get(cmi.location) failed.
Error code: 403
Error info: hata
public function get returned:
SCORM.data.get(cmi.entry) value: ab-initio
public function get returned: ab-initio
SCORM.data.get(cmi.location) failed.
Error code: 403
Error info: hata
SCORM.data.get(cmi.location) value:
SCORM.get(cmi.location) failed.
Error code: 403
Error info: hata
public function get returned:
SCORM.data.get(cmi.learner_name) value: test test
public function get returned: test test
答案 0 :(得分:1)
日志表示课程正确启动。 “错误”实际上是正确的行为:如果课程是cmi.location
(第一次启动),请求书签(ab-initio
)将导致错误。没有书签,因为它尚未创建。
如果你希望课程有一个书签 - 即你重新开始课程并且它仍然表现得像是从头开始 - 我猜你没有正确使用Commit
({{1在将数据发布到LMS之后,和/或在关闭课程之前没有在此包装器中发出scorm.save()
(Terminate
)。
如果您的课程检查scorm.quit
并看到cmi.entry
,则无需查找书签。您应该使用条件语句来防止错误并减少LMS与课程之间的喋喋不休:
ab-initio