embedding iframe hosted on wp: missing xAPI events (wp-h5p-xapi)

Hi forum,

I have this problem: I have a site foobar.com which is implemented in wordpress, and which manages and creates H5P content. This wordpress installation has https://wordpress.org/plugins/wp-h5p-xapi/ installed and configured.

 

Viewing and "playing" H5p content on foobar.com itself works fine, and generates xAPI statements as expected. Embedding the same content on an external site, via embed code (iframe src="https://foobar.com/wp-admin/admin-ajax.php?action=h5p_embed&id=2" ...) plays equally fine, however does not generate any xAPI statements.

I am a bit lost here; if I understand things correctly this is caused either by a missing integration of the xAPI callbacks in the h5p_embed action, or by some issue within wp-h5p-xapi. Or, of course, something else.

Is anyone using the same or a similar setup and experienced, and ideally, solved the same issue? 

 

tim's picture

This is because the h5p xapi plugin does not send statements back to the parent site if the content is embedded. 

Feel free to follow the discussion on Github:
https://github.com/h5p/h5p-wordpress-plugin/issues/58

 

Thank you tim, 

I will follow the githuib issue, hope a solution will pop up there.