Add sound on each good answer
Submitted by Jonathan David on Mon, 07/22/2019 - 17:46
Forums:
Hello,
I would like to know if there is a way to add a sound (like jackpot) when the students finds the good answer.
And also an other animation (instead of the stars).
Thank you in advance for your help !
otacke
Mon, 07/22/2019 - 18:22
Permalink
Hi Jonathan!You should be
Hi Jonathan!
You should be able to achieve both by using the customization hooks.
The easier one probably is the hook alter_styles for visual overrides, e.g. changing the star animation that you mentioned. The other one is the hook alter_scripts that can be used to add your own scripts. You'd let it listen to the appropriate event (usually the xAPI "answered" event) and evaluate it's result property to check whether the answer was correct or not - and to play an appropriate sound.
Cheers,
Oliver