下面是我这次使用的代码来运行一个简单的SCORM包(带有一个index.html,它可以工作)。我尝试了从这里包运行- 简单补救SCORM 2004第3版的排序示例,但是这个包没有任何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下载
发布于 2013-08-21 10:47:38
它的工作方式如下: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)放入不同的iframes中,因此它们很可能无法进行通信。
https://stackoverflow.com/questions/18314476
复制相似问题