SCORM包未与LMS通信 [英] SCORM package is not communicating with LMS

查看:207
本文介绍了SCORM包未与LMS通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

即使在Initialize之后,SCORM包也没有与LMS通信 -

Even after Initialize, SCORM package is not communicating with the LMS-

投掷错误 -

未找到SCORM实现。

我的文件夹结构 -

My Folder structure-

-index.php
-player.php
-course/SCORM-course (directory)
-wrap.js
-SCORM_2004_APIWrapper.js

所有代码 -

我的index.php代码 - http://pastebin.com/e8fcvxep

My index.php code - http://pastebin.com/e8fcvxep

我的播放器。 php代码 - http://pastebin.com/R0zRaVXJ

My Player.php code - http://pastebin.com/R0zRaVXJ

我的wrap.js代码 - http://pastebin.com/Lte4eTKu

My wrap.js code - http://pastebin.com/Lte4eTKu

我的SCORM_2004_APIWrapper.js代码 - http://pastebin.com/kdQ0JR04

My SCORM_2004_APIWrapper.js code - http://pastebin.com/kdQ0JR04

我搜索并尝试了所有我能做但仍然无法解决的问题。让我知道我们还需要编辑什么才能使其正常工作。

I searched and tried everything that I can but still unable to resolve. let me know what else we need to edit to make it working.

推荐答案

由于您使用的是SCORM 2004,因此需要将API包装器放在名为 API_1484_11 的框架中。您目前拥有名为 API 的API框架,该框架引用SCORM 1.2。

Since you're using SCORM 2004, you need to have the API wrapper in a frame named API_1484_11. You currently have the API frame called API which refers to SCORM 1.2.

例如,在 player.php 中,你会改变这一行:

For example, in player.php, you would change the line:

< frame src =SCORM_2004_APIWrapper.jsname =APInoresize>

< frame src =SCORM_2004_APIWrapper.html名称=API_1484_11noresize>

其中 SCORM_2004_APIWrapper.html 是一个html文件,引用 SCORM_2004_APIWrapper.js

Where SCORM_2004_APIWrapper.html is a html file that references SCORM_2004_APIWrapper.js.

这是因为根据api发现算法,名为API的框架是指到SCORM 1.2而不是SCORM 2004.API发现算法循环遍历当前窗口及其框架,并且窗口开启器(如果适用)寻找名为API_1484_11的元素。

This is since according to the api discovery agorithm, a frame named "API" refers to SCORM 1.2 not SCORM 2004. The API discovery algorithm loops through the current window and its frames, and the windows opener if applicable looking for an element named "API_1484_11".

Rustici提供了一个关于API发现算法的优秀资源: http://scorm.com/scorm-explained/technical-scorm/run-time/api-discovery-algorithms/

A good resource on API discovery algorithms is available from Rustici at: http://scorm.com/scorm-explained/technical-scorm/run-time/api-discovery-algorithms/

这篇关于SCORM包未与LMS通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆