简体   繁体   中英

How to get details such as score, correct answer from package running with tincan?

我有一个锡罐包装,可以用来玩游戏,我需要从包装中获取比分吗?

Generally you will not get the score from the package. The content is most likely communicating with an LRS via xAPI and recording data via xAPI statements. You would then request the statements from the LRS via xAPI, parse the statements, and based on how the content records such data you would determine the statement containing the data you need and retrieve it from there. All of this is dependent on how that package is authored, the types of statements that are sent, and having access to the LRS where the data has been recorded. There are a number of libraries available to make communicating with an LRS via xAPI simpler. See a list here: https://experienceapi.com/libraries

In general long term, cmi5 is a better package implementation specification that makes it more clear how to record typical LMS based e-learning content. In that specification it is clear how to locate a score provided by the content.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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