The $component = 'mod_h5pactivity' will be passed always to the H5P player because it's required for being able to call these activities from outside using embed code. The xAPI implementation checks whether the information should be tracked or not.
This is the external method for triggering the course module viewed event and update the module completion status. Affects mobile app.
AMOS BEGIN CPY [h5poptions,atto_h5p],[h5pdisplay,mod_h5pactivity] CPY [downloadbutton,atto_h5p],[displayexport,mod_h5pactivity] CPY [embedbutton,atto_h5p],[displayembed,mod_h5pactivity] CPY [copyrightbutton,atto_h5p],[displaycopyright,mod_h5pactivity] AMOS END