It works like this: the imsmanifest.xml
lists items and their resources, like this:
<item identifier="playing_item" identifierref="playing_resource">...</item>
<resource identifier="playing_resource" href="shared/launchpage.html?content=playing" adlcp:scormType="sco" type="webcontent">...</resource>
You have to find the first item
item (sorry :), then use its identifierref
attribute to find the resource for that item, then use the href
attribute for that resource to launch. So in your case you have to run shared/launchpage.html
, not index.html
.
Also, I'm not sure if your code will work, because you are putting SCORM_2004_APIWrapper.js
and index.html
(or launchpage.html
) into different iframes, so it's likely they won't be able to communicate.