下面是我这次用来运行一个简单的SCORM包的代码(使用index.html)。我尝试了HERE包运行的排序示例-简单补救SCORM 2004第三版,但这个包没有任何index.html文件,所以我如何在下面的代码中检查运行它的入口点?
我想我需要在imsmanifest.xml
中检查一些东西,但无法定位(在谷歌上搜索了很多,但无法破解)。
让我知道如何为SCORM2004包找到要运行的入口文件?
<!DOCTYPE html>
<html>
<head>
<title>Play SCORM Package - </title>
</head>
<body>
This is going to play a course in an inframe.
<div id="course-show">
<iframe src="SCORM_2004_APIWrapper.js" name="API_1484_11" width="0" height="0"></iframe>
<iframe src="course/sample_SCORM2004/index.html" width="800" height="600"></iframe>
</div>
</body>
</html>
APIWrapper下载自-http://www.adlnet.gov/adl-releases-scorm-version-1-2-and-scorm-2004-api-wrapper-files
它的工作方式如下:imsmanifest.xml
列出项目及其资源,如下所示:
<item identifier="playing_item" identifierref="playing_resource">...</item>
<resource identifier="playing_resource" href="shared/launchpage.html?content=playing" adlcp:scormType="sco" type="webcontent">...</resource>
您必须找到第一个item
项目(抱歉:),然后使用其identifierref
属性查找该项目的资源,然后使用该资源的href
属性启动。因此,在您的情况下,您必须运行shared/launchpage.html
,而不是index.html
。
此外,我不确定您的代码是否有效,因为您将SCORM_2004_APIWrapper.js
和index.html
(或launchpage.html
)放入不同的iframe中,因此它们很可能无法通信。