-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No suspendData string? #113
Comments
Hi @alexjalex ! At first I thought I understood your question, but then your last paragraph confused me. Are you asking for storing the state of interactions - the students progress - so students can leave, return later and continue where they left off? Many H5P content types allow this if you activate the save content state feature in the plugins settings. If turned on, the state is saved to database for users that are logged in. There's also a pull request that would retrofit storing/retrieving the state in/from local storage for users that are not logged in. The state is not put into the H5P file that you may download however. If that's what you are looking for, then you could create a feature request. If you're developing your own content type, you just need to implement a function named Or are you asking for scores etc? H5P uses xAPI to report all kinds of user experiences, but it's up to site owners to forward all the data to a separate Learning Record Store. If you are developing your own content types and want to use xAPI to document user experience, possibly some state values, there are extensive xAPI specs. Best, |
Looks like contentUserData is what i'm looking for. Kinda hard to find details about it. There's a tiny bit here, https://h5p.org/creating-your-own-h5p-plugin. I can't find any of the following on the API, maybe i'm derping.
Any tips for where to get me started would be greatly appreciated. The tutorials are a bit light on complexity. |
Hi @alexjalex ! As a content type developer, you can implement a function The state will then be stored inside (retrieved from) a database table in the host system that essentially links a user id with a content id and the stringified state object retrieved from When a content type is started by a user, H5P will try to fetch a previous state for this content type and user and pass it to the content type's constructor in the third parameter. A constructor usually reads something like |
Regarding the state saving capabilities, is there anyway when creating custom components to allow suspend data to save.
In SCORM, this is implemented with a single large string that is saved per user.
When creating custom SCORM interactives, it's up to the developer to fill this string with whatever custom key/value system they make.
I want to replace our custom SCORM interactives with H5P, but the docs only say (Start and End Time, Scores) are saved. That is not useful.
The text was updated successfully, but these errors were encountered: