Add sound on each good answer
Submitted by Jonathan David on Mon, 07/22/2019 - 17:46
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 !
0Supporter votes Members of the Supporter Network can vote for feature requests. When the supporter network has generated sufficient funding for the top voted feature request it will normally be implemented and released. More about the H5P Supporter Network
Mon, 07/22/2019 - 18:22
Hi Jonathan!You should be
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.