Interactive Video

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:

Interactive Video Interactions as a standalone quiz

Forums: 

I want to use H5p  interactions that i created in a video  to be used as standalone quiz. for that i am building an app on Angular which will take the wordpress table that contains content in the video interactions as json. now i want to use the libraries already built by h5p to display them to user one by one. how can i call the user interface libraries and display content of interactions with minor modifications ?

 

Pages