H5P xAPI Issues

Hi,

I have H5P on Drupal Hooked up to Learning Locker (LL) using the TinCan Bridge.

The statements are showing up in LL but I am getting a mix of Annonymous and Identified statements when playing Interactive Video content

Here is a list of statements that shows up when I view and play the Interactive Video and answer a question in it and scrub to the end of the video.

Note the mix of "Annonymous" & "Damien Murphy" statements even though I am the only person doing this.

·         Anonymous completed Flashbrand a few seconds ago

·         Damien Murphy completed Flashbrand a few seconds ago

·         Anonymous skipped Flashbrand Video a few seconds ago

·         Anonymous paused Flashbrand Video a few seconds ago

·         Anonymous play Flashbrand Video a few seconds ago

·         Anonymous paused Flashbrand Video a few seconds ago

·         Anonymous watched Flashbrand Video a few seconds ago

·         Anonymous paused Flashbrand Video a few seconds ago

·         Anonymous play Flashbrand Video a few seconds ago

·         Anonymous skipped Flashbrand Video a few seconds ago

·         Anonymous watched Flashbrand Video a few seconds ago

·         Anonymous paused Flashbrand Video a few seconds ago

·         Anonymous play Flashbrand Video a few seconds ago

·         Anonymous answered Choose the correct statement. a few seconds ago

·         Damien Murphy interacted Choose the correct statement. a few seconds ago

·         Damien Murphy answered Choose the correct statement. a few seconds ago

·         Anonymous interacted Choose the correct statement. a few seconds ago

·         Anonymous answered Summary statement a few seconds ago

·         Damien Murphy answered Summary statement a few seconds ago

·         Damien Murphy interacted Choose the correct statement. a few seconds ago

·         Anonymous interacted Choose the correct statement. a minute ago

·         Anonymous paused Flashbrand Video a minute ago

·         Anonymous watched Flashbrand Video a minute ago

 

In order to set the user (since I am using an iFrame to display the Drupal post) I pass the user name and email on the iFrame src url as a hash param

 

Then inside h5p.js init function I set the H5PIntegration.user

 

iFrame URL = http://www.adaza.io/training/?q=node/4#Damien%20Murphy%7Cdamien.murphy%4...

Setting the user inside H5P.init()

 

H5P.init = function (target) {

  var userParam = decodeURIComponent(document.location.hash.replace(/^#/, ''));

  var details = userParam.split("|");

  H5PIntegration.user = {name:details[0], mail:details[1]};

Content types: 
tomaj's picture

Hi Damien,

Thanks for reporting the bug. We will look into it. I created a Jira task here, where you can follow the progress.

- Tom

falcon's picture

I see you have skipped, paused, play and watched statements. I don't think H5P is currently generating those. Where do they come from?

They are coming from the Interactive Video content

fnoks's picture

H5P is not sending events for play, pause and so on. I see you have included a tincansdk.js, which is not part of H5P. It seems this component is sending those events.

We will add these events in H5P videos when we get the time to do it. You can follow the issue here: https://h5ptechnology.atlassian.net/browse/HFP-434

Maybe im not 100% clear how to leverage H5P with xAPI.

Should I be using the tincan module with H5P or does H5P already send these statements?

Here are the modules I have enabled from TinCan module

 

Once I disabled all other Tin Can API parts I stopped seeing the Anonymous statements

fnoks's picture

Hi,

I am not familiar with the TinCan module