Hi there, I have done some html coding to add a continuous background music throughout my entire elearn so that it does not loop after every slide.
I added <audio src="Music.mp3" preload="auto" autoplay loop></audio> into various files in the SCORM folder by editing using notepad.
It works perfectly when I run the story.html file on my web browser. However when I zipped it back into SCORM package and upload to my LMS(CSOD) it does not play the background music at all.
Does anyone know what could be the issue here? and how do I go about solving it?
I can't quite tell what I'm looking for when I open the JavaScript console of Google Chrome. Do you know what the error(s) might say?
If the issue is with the browser, does this means that users will not have audio unless they resolve an issue with their own browsers (if there is one)?
Can you grab a screenshot of the errors that you see there? Or share a link to your course, I'm happy to take a look.
Autoplay isn't allowed without user input on modern browsers, so no, this code won't work and as a result, the background audio likely won't play as you intend.
7 Replies
Your browser is probably blocking the autoplay.
Check the JavaScript Console when viewing on your LMS, there is likely an error message there.
Hi Matthew,
Greatly appreciate your response! =)
I have checked and I am unable to find any error.
I too am having the exact same issue and I can't see what the problem and solution might be.
Your browser is probably blocking the autoplay.
Check the JavaScript Console when viewing on your LMS, there is likely an error message there.
I can't quite tell what I'm looking for when I open the JavaScript console of Google Chrome. Do you know what the error(s) might say?
If the issue is with the browser, does this means that users will not have audio unless they resolve an issue with their own browsers (if there is one)?
Can you grab a screenshot of the errors that you see there? Or share a link to your course, I'm happy to take a look.
Autoplay isn't allowed without user input on modern browsers, so no, this code won't work and as a result, the background audio likely won't play as you intend.
Sorry.
Hey Matthew. I've uploaded the project as it currently stands to my 360 Review page. I hope this is okay. Here is the link: https://360.articulate.com/review/content/6d060f6d-d25a-4af5-9314-a25fec314142/review