xAPI 'success' result incorrect for Interactive Video
Using Javascript event listeners, I tested the demo content for Interactive video – the 'Smoothie' activity here: https://h5p.org/interactive-video#example=617
In the console, I saw that the whole activity was marked as complete (with a result of 'success'), after only one of the five quiz questions was answered correctly (the first question). Do I need to change the scoring settings so that it recognises that only 20% of the activity has been completed, or is this a bug? The console messages below are what appear when the first quiz question is completed.
H5P xAPI event detected: H5P.XAPIEvent {type: 'xAPI', data: {…}, preventBubbling: ƒ, getBubbles: ƒ, scheduleForExternal: ƒ}data: statement: actor: {name: 'site', mbox: 'mailto:[email protected]', objectType: 'Agent'}context: {contextActivities: {…}, extensions: {…}}object: {id: 'https://url?…subContentId=d06868ac-688b-4a31-8fc4-9f756f7c545d', objectType: 'Activity', definition: {…}}result: completion: trueduration: "PT16.13S"response: "1"score: {min: 0, max: 1, raw: 1, scaled: 1}success: true[[Prototype]]: Objectverb: {id: 'http://adlnet.gov/expapi/verbs/answered', display: {…}}[[Prototype]]: Object[[Prototype]]: ObjectgetBubbles: ƒ ()preventBubbling: ƒ ()scheduleForExternal: ƒ ()type: "xAPI"[[Prototype]]: Object
myscript.js?ver=1.0.0:55 Full xAPI statement: {actor: {…}, verb: {…}, object: {…}, context: {…}, result: {…}}actor: {name: 'site', mbox: 'mailto:[email protected]', objectType: 'Agent'}context: {contextActivities: {…}, extensions: {…}}object: {id: 'url/wp-admin/admin-ajax.php?…subContentId=d06868ac-688b-4a31-8fc4-9f756f7c545d', objectType: 'Activity', definition: {…}}result: completion: trueduration: "PT16.13S"response: "1"score: {min: 0, max: 1, raw: 1, scaled: 1}success: true[[Prototype]]: Objectverb: display: {en-US: 'answered'}id: "http://adlnet.gov/expapi/verbs/answered"[[Prototype]]: Object[[Prototype]]: Object
otacke
Fri, 11/29/2024 - 19:46
Permalink
You have picked up the xAPI
You have picked up the xAPI statement of the subcontent that you completed, not an xAPI statement of Interactive Video.