General discussion

Question on xapi + wordpress

Hello, I'm unsuccessfully trying to use xapi with a wordpress installation.

I read https://h5p.org/documentation/x-api and was trying:
Example
To try this out type the following in your browser's console when using an H5P object on a website:

H5P.externalDispatcher.on('xAPI', function (event) {
console.log(event.data.statement); });

However, console returns:Undefined

Detecting if all questions in Interactive Video answered correctly

I'm trying to figure out the best way to determine if a user has both a) watched an entire Interactive Video and b) answered all of the questions contained therein correctly. I can use something like if (event.getScore() === event.getMaxScore() ){ for individual questions or events, but I wasn't sure if there was anyway to check all of these within a parent activity (e.g., Interactive Video). I didn't see anything in the xAPI statement for Interactive Video to suggest there is.

Pages