How tin-can-api works offline?

笑着哭i 提交于 2019-12-11 03:55:34

问题


I am creating the ebook with some activities like quiz, puzzles using HTML5, CSS, JavaScript and Jquery. How to add Tin-Can into it. It should tract the action of reader and work offline.

As mention in Tin-Can API document API Doc, it works online and offline. How it works offline?

As I understand Actor, Verb and Object statement has to store locally in log and send to LRS when its connected to LRS. Am I correct?

If Yes, How to maintain the log of Actor, Verb and Object statement locally?

If i am wrong, How its works offline and how to maintain the Actor, Verb and Object statements of reader?


回答1:


The mechanism for Tin Can to enable offline tracking is the timestamp property. This enables you to record not just when data was stored, but when the learning experience actually happened so that statements can be stored and transferred to the LRS later when a connection is available.

As Tin Can is a specification to support interoperable communication between learning technologies, the exact mechanism for storing the data doesn't matter. So long as you send the data in the right way when you get a connection, the LRS will be able to receive that data, however it was stored prior to sending.

Now, whilst that technically answers your question, I imagine that "you can store it however you like" may not be a helpful answer if you're looking for one way, any way, to store the data rather than being in a situation of having lots of options and wanting to choose the Tin Can conformant option from that list.

I recommend that your next steps are for you to ask (or search for) a more generic question about data storage on your particular platform e.g. "How do I store data on android?" or "How can I use JavaScript local storage?" as this particular technical challenge is in no way specific to Tin Can.

I hope that helps!



来源:https://stackoverflow.com/questions/28871592/how-tin-can-api-works-offline

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!