Track Pausing, rewinding etc. in interactive videos on moodle

Forums: 

Hi!

I am a German researcher and I will use H5P for a study examining the effectiveness of interactive tasks in instructional videos. 

For my study, I need to track the students' behaviour when working with H5P videos, i.e. if/where they pause, if/where they rewind or repeat a part, if / to where they jump in the video and how much time they spend on the interactive elements in the video. I know how to code, so my first thought was to set up a whole new learning environment for my study in which h5p is integrated. As I understand it (though I have not tested it, yet) I could then track the things I want using xAPI (https://h5p.org/documentation/x-api). 

However, I might not have enough time to set up and code my own learning environmet before I will conduct my study. So I was wondering, whether I can also track everything I want when the H5P video is integrated in moodle. Using moodle would save me a lot of time. But I am not sure whether or how I can access this information on moodle.

Any help would be greatly appreciated, thank you in advance!

otacke's picture

Hi siwetzel!

You can track the xAPI events by using the H5P plugin's "alter_scripts" hook and establishing a listener in your script. However, H5P.InteractiveVideo does not (yet) emit statements when pausing, playing, etc.

You'd need to for instance listen to the instance of H5P.Video inside of InteractiveVideo and interpret the `stateChange` event - and wrap that inside an xAPI statement if you want to use a uniform interface. The tricky part may be to interpret the`stateChange` event correctly, because seeking sometimes triggers multiple events if I recall correctly.

Cheers,
Oliver