Forum Discussion
Video Played, Completed… (Custom xAPI)
Very cool!
My contributions in this community tend to focus on out-of-the-box solutions for xAPI tracking of student performance, while building-in conformance to make the measurements most effective in our LRS.
The solution I gave uses the W3ID Video Profile to loosely detect and report “played” and “completed” actions, as well as total video “length”. Your solution offers more precise detection, and — as you suggest — the potential to measure many results too, including “time” or percent “progress” within the video at the instance of each action.
If you could add a routine to your JavaScript to extract a timestamp, then the followers of this thread could use it to report it using a result.extension inserted in the custom xAPI…
"result": {
"extensions": {
"https://w3id.org/xapi/video/extensions/time": %VideoTime%
}
},
Thanks for your follow-up. 😄
Yes, we can report virtually any video interaction as long as we have JavaScript supporting it. For example, we can create a series of video events that send xAPI statements when specific actions occur in JavaScript, such as onplay, onpause, onended, onseeked, ontimeupdate, and so on.
I was particularly happy with the “seeked” event, because it allows us to track both the from and to timestamps directly in JavaScript. Similarly, the “progressed” event can be configured to fire at specific intervals, such as every 5% of video completion or at any percentage milestone, giving precise reporting on how far learners have watched the video.
Screenshots shown are taken from the Verocity LRS account, demonstrating how the events are captured and reported.
Related Content
- 4 months ago
- 4 months ago