jorisdugue/h5p-bundle

Save Content State not working

Closed this issue · 1 comments

Hello Guys,
Screenshot from 2020-12-29 13-12-27

I've integrated this nice bundle and it works very good, thank you very much for this hard work.
I've a question about the how to keep the content state, as you can see, the above screen show the score of the user what is stored very well in the database, but when I reload the page, the content state is lost, as you can see in the next screenshot.

Screenshot from 2020-12-29 13-12-42
So, I was doing a revision about the h5p in Moodle and noticed that Moodle has a similar table that is created with this bundle called "h5p_content_user_data", but I cannot see this table working with the bundle, I mean when I reload the page, the "content status" is not shown according to the both screenshots, Do you know how could I fix this issue?

I did my test with this package.
true-false-question-7-63683.h5p.zip
only rename to .h5p instead zip.

Best regards and thanks for you great work!

Isaac Flores

After check the settings, I found this options that work very well.

studit_h5_p:
  use_permission: false # This is false by default to let the demo work out of the box.
  storage_dir: /h5p/ # Location to store all H5P libraries and files
  web_dir: public # Location of the public web directory
  export: 3 #for all
  embed: 3 #for all
  save_content_state: true
  save_content_frequency: 30