Developers

Technical forum about Content Type or System Plugin development.
Here you can apply for developer access.

Tutorial to modify a content

Forums: 

Hello,

I am currently working with several H5P content under Drupal 8, and I would like to be able to retrieve more information on the client side via xAPI events.

Currently, we can retrieve the score via the functions defined for this effect. I would like to modify the different contents to retrieve the instruction displayed to the user at time T.

I tinkered around by communicating with the database to retrieve this content, but it's not conclusive especially with H5P like the multiChoices, or recently the BranshingScénario.

Can you help me?

How to avoid function being called several times at the end of interactive video

Forums: 

I have an interactive video with a couple of fill in the blank activities and a function call at the end of an interactive video. However, the function is called several times.
My issues is that   IsAnswered && contextIsIV (see code below) is returning true for every IV activity and not just at the end of the video.

How do I only call the function after the user has ended the video and has completed at least one activity.

Here is my code:

Pages