简体   繁体   English

在最后一张添加书签的幻灯片上打开 xAPI 内容

[英]Open xAPI content at last bookmarked slide

I am currently opening xAPI content in our own LMS.我目前正在我们自己的 LMS 中打开 xAPI 内容。 We do not use a LRS but store statements in our own database.我们不使用 LRS,而是将语句存储在我们自己的数据库中。 This will change soon as we want to build our own LRS.当我们想要构建自己的 LRS 时,这将很快改变。

When opening content, I build a string comprising the content, endpoint auth token and actor.打开内容时,我构建了一个包含内容、端点身份验证令牌和参与者的字符串。

This will always open the content at the beginning.这将始终在开头打开内容。

If I connect to a LRS, the content is opened at the last bookmarked slide, and shows the percentage of progression.如果我连接到 LRS,内容会在最后一张带有书签的幻灯片上打开,并显示进度百分比。

On looking at calls made in Fiddler I can see 3 main calls being made to the LRS where the state_Id passed in is suspend_data, cumulative_time or bookmark.在查看在 Fiddler 中进行的调用时,我可以看到对 LRS 进行了 3 个主要调用,其中传入的 state_Id 是suspend_data、cumulative_time 或书签。

Bookmark returns the Id of the last slide, and suspend data returns a load of numbers in json format.书签返回最后一张幻灯片的 ID,挂起数据返回 json 格式的数字负载。

My issue is that I can easily get the last slide Id from my database, but I cannot get the percentage or set the completed items in the package as complete (with the tick).我的问题是我可以轻松地从数据库中获取最后一张幻灯片 ID,但我无法获取百分比或将 package 中的已完成项目设置为完整(带有勾号)。 I'm guessing the returned values from suspend_data may have something to do with setting these.我猜从 suspend_data 返回的值可能与设置这些有关。

Can anyone advise on what I should be doing to open the content properly at it's bookmark?谁能建议我应该怎么做才能在它的书签上正确打开内容?

The content itself would be in charge of opening itself to the right place based on the returned values from the queries.内容本身将负责根据查询返回的值将自己打开到正确的位置。 The content is using the State API document resources to capture those values, see https://xapi.com/blog/deep-dive-state-activity/ , and then to read them back at launch so that it can set the correct state for the learner. The content is using the State API document resources to capture those values, see https://xapi.com/blog/deep-dive-state-activity/ , and then to read them back at launch so that it can set the correct state为学习者。 This will also be specific to the type of content that is being run, in this case likely from a major authoring tool which has determined how it wants to store those values.这也将特定于正在运行的内容类型,在这种情况下,可能来自已确定要如何存储这些值的主要创作工具。 Content from other authoring tools will not necessarily use those same methods.来自其他创作工具的内容不一定会使用相同的方法。 xAPI does not provide for any specifics around these details, it only defines what the LRS must support, so you will be best off implementing the LRS endpoints in the way they were intended or you'll be customizing for every kind of content you have. xAPI 不提供有关这些细节的任何细节,它仅定义 LRS 必须支持的内容,因此您最好按照预期的方式实现 LRS 端点,或者您将针对您拥有的每种内容进行自定义。 Also, you likely should be providing more information to the content at launch time, for instance a base activity id and a registration value.此外,您可能应该在启动时向内容提供更多信息,例如基本活动 ID 和注册值。

https://xapi.com/building-a-learning-record-store/ may be a good resource to review before creating an LRS. https://xapi.com/building-a-learning-record-store/可能是在创建 LRS 之前查看的好资源。

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

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