Hello.
I use Moodle 3.5. I am trying to edit the HTML code in activity Lesson. I would like to autoplay an audio on image click (e.g.
but without to open the file in a new window The standard player in Moodle is too large and a bit disturbing.
The plan is that the users could read the content, prepared in the lesson, and listen to the explanation at the same time. The audio is stored in One Drive. I tried some suggested solutions on the web (for example https://stackoverflow.com/questions/34696208/play-a-sound-on-image-click-in-html), but without success (the “onclick” is not working). I guess it is because I only have the link to the uploaded file). I also thought to upload the mp3 file as a resource file in the Moodle and somehow to connect it, but I do not know how. Or maybe to use the hyperlink events (onclik)?
Can you please help me?
Thank you and kind regards.
Natalija