save user stats into db, so user can continue with previous saved state
Closed this issue · 3 comments
qunabu commented
it is possible to save user state
when you fetch for current settings in the player there is contentUserData
https://h5p.org/creating-your-own-h5p-plugin
This is what you get from content endpoint
window.H5PIntegration = {
"baseUrl": "http://www.mysite.com", // No trailing slash
"url": "/path/to/h5p-dir", // Relative to web root
"postUserStatistics": true, // Only if user is logged in
"ajaxPath": "/path/to/h5p-ajax" // Only used by older Content Types
"ajax": {
// Where to post user results
"setFinished": "/interactive-contents/123/results/new",
// Words beginning with : are placeholders
"contentUserData": "/interactive-contents/:contentId/user-data?data_type=:dataType&subContentId=:subContentId"
},
this should be avaiable in our implementation and configurable with setttings #110
jonathands commented
I'd love to try my hand at doing this and test it on the demo, any pointers?
qunabu commented
@jonathands I'll prepare a brief for this task
github-actions commented
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.