h5p / moodle-mod_hvp

H5P Plugin for Moodle
GNU General Public License v3.0
132 stars 171 forks source link

Single Choice Set: Invalid xAPI data (Inside of Virtual Tour 360) #437

Open prandev01 opened 2 years ago

prandev01 commented 2 years ago

Please help me to solve this issue ASAP! Thanks

HELLO TEAM! Hope you are all doing well.

  1. Platform
  1. How to reproduce
    • Just create a HVP activity uwing Virtual Tour 360
    • Create a Single Choice Set
    • After you answer all choices for above choice set, you receives an "Invalid xAPI data" response.

==================

Screen Shot 2022-01-26 at 10 09 08 AM

==================== Payload ==========

Screen Shot 2022-01-26 at 10 11 03 AM

xAPIResult: {"statement":{"actor":{"name":"Admin User","mbox":"mailto:hybrid.dev.team@gmail.com","objectType":"Agent"},"verb":{"id":"http://adlnet.gov/expapi/verbs/completed","display":{"en-US":"completed"}},"object":{"id":"http://localhost:8004/mod/hvp/view.php?id=57?subContentId=18918170-6761-43e5-81cd-7a54c322a8d5","objectType":"Activity","definition":{"extensions":{"http://h5p.org/x-api/h5p-local-content-id":1,"http://h5p.org/x-api/h5p-subContentId":"18918170-6761-43e5-81cd-7a54c322a8d5"},"name":{"en-US":"Untitled Single Choice Set"}}},"context":{"contextActivities":{"category":[{"id":"http://h5p.org/libraries/H5P.SingleChoiceSet-1.11","objectType":"Activity"}]}},"result":{"score":{"min":0,"max":2,"raw":2,"scaled":1},"completion":true,"success":true}}}

prandev01 commented 2 years ago

I did some debugging. And the reason is that xAPIResult doesn't contain "interactionType" . Why does this happen?

prandev01 commented 2 years ago

H5P.Summary module is also doesn't work inside of Virtual Tour 360.