LRS communication back to H5P

Forums: 

Hi There

I understand that some H5P activities can be setup to send xAPI statements to an LRS following user interactions. I hope someone can give me any clarification on my question.

Q. Following the receipt of a statement received by an LRS, can data be sent back to the H5P activity so an adaptive decision branch can be presented to the user in real time? (eg - user makes a choice in the activity, and based on that choice, they are given tailored choices as an adaptive pathway through the activity)

Thanks

otacke's picture

Hi!

You can add scripts to H5P content if you like by using the alter_scripts hook, and usually H5P content types expose all their main functions, so you should be able to establish your own listeners (potentially using some postMessaging to account for cross server communication) that then control what the content does - but it may become messy at some point and you'll definitely hit some walls eventually.

Best,
Oliver

Hi

Thanks for your response. The link takes me to a page not found. I think I found it in one of your previous replies in the forum. https://h5p.org/node/2692. I will have a look at how that can be achieved. I am not a developer (doing some coding tutorials currently though), but have a keen interest in xAPI and I am starting to use H5P for some projects. This is a good point of reference thank you. I will try to find some use cases to help me with context.

Hi

Thanks for your response. The link takes me to a page not found. I think I found it in one of your previous replies in the forum. https://h5p.org/node/2692. I will have a look at how that can be achieved. I am not a developer (doing some coding tutorials currently though), but have a keen interest in xAPI and I am starting to use H5P for some projects. This is a good point of reference thank you. I will try to find some use cases to help me with context.