如何在 Objective-C 中实现 SCORM
您知道如何在 Objective C 中针对电子学习内容实施SCORM(可共享内容对象参考模型)吗?让我向您解释一下我到底在寻找什么。
我有一份 MCQ(多项选择题)申请,其中有 4 个问题。在尝试每一个问题时,我希望我的应用程序能够与 SCORM 兼容服务器进行交互并得到结果(无论用户是否尝试了正确的问题)。沟通渠道应该是来回的。可能在 MCQ 结束时,我想显示来自服务器的一些计算结果**(例如分数:85% 尝试次数:16 平均分数:16.7% 等)**。
我该怎么办?如果您已经实现了,请
指导 兰詹。
Do you know how to implement SCORM (Sharable Content Object Reference Model) in Objective C for eLearning content? Let me explain you what exactly I am looking for.
I have one MCQ (multiple choice question) application which has 4 questions. On attempting each question I want my application to interact with a SCORM compatible server with result (whether the user has attempted correct one or not). The communication channel should be to and fro. May be at the end of the MCQ I want to show result which will come from the server with some calculations**(like Score : 85% number of attempts : 16 average score:16.7% etc.)**.
How should I go about it? Please guide if you have already achieved it
regards
Ranjan.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
恐怕事情没那么简单,原因有二。
1) SCORM需要一个“玩家”来沟通。您无法通过 SCORM 从应用程序直接与服务器通信。 SCORM LMS 需要启动您的应用程序并提供通信通道。
2) SCORM定义的通信通道是通过JavaScript实现的。 SCORM 设计为在浏览器中运行,而不一定在应用程序中运行。
如果您的应用程序将在 iPxx 上的 SCORM 播放器上下文中播放,那么您的技巧就是启用 Objective C 和 JavaScript 之间的通信。我对 Objective C 的了解不够,无法告诉你如何做到这一点,但如果你能做到这一点,剩下的就是 直接的 SCORM。
SCORM 目前已有 10 年历史,正在进行现代化改造以支持您所描述的用例。其中一个现代化项目由 LETSI 实施,涉及为 SCORM 创建基于 Web 服务的通信 API。它现在处于早期发布阶段,但它的原型是用于传送 iPhone 内容。希望业界很快就能开始支持其中一些更现代的技术。
I'm afraid it's not quite that simple for two reasons.
1) SCORM requires a "player" to communicate with. You can't directly communicate with a server from your application via SCORM. The SCORM LMS needs to launch your application and provide the communication channel.
2) The communication channel defined by SCORM is via JavaScript. SCORM is designed to operate in the browser not necessarily in applications.
If you application will be played in the context of a SCORM player on the iPxx then the trick for you is enabling communication between Objective C and JavaScript. I don't know enough about Objective C to tell you how to do that, but if you can make it happen, the rest is just straightforward SCORM.
SCORM is currently 10 years old and is in the process of being modernized to support use cases like you describe. One of those modernization projects is being conducted by LETSI and involves the creation of a web services based communication API for SCORM. It is in early release now, but it is has been prototyped for delivering iPhone content. Hopefully the industry will begin to support some of these more modern technologies soon.