简体   繁体   English

将 SPA 转换为 SCORM 1.2 PACKAGE

[英]Converting SPA to a SCORM 1.2 PACKAGE

I've recently been asked to check out whether it's possible to convert a React SPA into a SCORM 1.2 compliant package.最近有人要求我检查是否可以将 React SPA 转换为符合 SCORM 1.2 的 package。

From my understanding, it is possible to reference a HTML page and relevant assets in the xml:据我了解,可以参考 HTML 页面和 xml 中的相关资产:

<resources>
  <resource identifier="r1" type="webcontent" adlcp:scormType="sco" href="index.html">
    <file href="index.html" />
    <file href="main.js" />
  </resource>
</resources>

But it seems there wouldn't be any ability to handle an SPA that was built with routing?但是似乎没有任何能力来处理使用路由构建的 SPA?

A side question : Is there a spec similar to <folder> so that we don't have to define each asset?一个附带问题:是否有类似于<folder>的规范,这样我们就不必定义每个资产?

Do you only want to launch your spa from within the LMS without any tracking?您是否只想从 LMS 中启动您的水疗中心而不进行任何跟踪? Than you should use the adlcp:scormType="asset".比你应该使用 adlcp:scormType="asset"。

Else your content would have to support the whole mandatory sco communication features like:否则,您的内容必须支持整个强制性 sco 通信功能,例如:

  • find the scorm api找到scorm api
  • initialize the session初始化 session
  • get and set values获取和设置值
  • errorhandling错误处理
  • finalize the session完成 session

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM