Store current content state in external database

Forums: 

Hello,

I added the feature to display h5p content in my LMS and i would like to store the current state of my users.

Is there a best way to do this ? Using xAPI ? Using an "H5P APi" ?

I of course also need to set this content state to the h5P when my user come back.

Thanks a lot

Summary: 
Store current content state in external database
Content types: 
otacke's picture

Hi Guillaume!

All you have to do is to check "save content state" in the plugin's settings. If activated, H5P will save and recover the content state for users that are logged into your LMS.

Best,

Oliver

Hello and thanks,

Actually, i have an iframe of a wordpress with kind of sso that allows all my users to perform an h5p module stored in the wordpress.

What i need to do is to get the current state when user close the window and save it to provide it to the module (in the iframe) when my user comes back.

 

otacke's picture

Hi Guillaume!

So you basically have anonymous users. I don't see a way to do it then, but I am no expert on those cross-site-things either.
There was an idea to optionally use cookies for storing the state, but this still is only an idea.

Best,

Oliver