Developers

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

xapi with Embeded iframe

Forums: 

Hi,

It's any way to use xapi if I'm embebeding the h5p in moodle with an Iframe ?

I test it using the chrome console, but seems that is not working

Test code

H5P.externalDispatcher.on('xAPI', function(event){

  if (event.getScore() === event.getMaxScore() && event.getMaxScore() > 0){

    console.log('do something useful here');

  }

});

Error

Uncaught ReferenceError: H5P is not defined     at <anonymous>:1:1

Thanks,

New Editor - Icon Selector

Forums: 

Hi Guys,

I've already posted an issue about a new feature I completed for h5p-image-hotspots but just thought I'd also share it here as I guess the H5PEditor.IconSelector can be used seperately and in any content-type similar to the color selector. It can be found here: https://github.com/lukemuller/h5p-editor-icon-selector

Pages