Has anyone had problems with HTML5 output and no background music playing over all slides? If so I will post simple solution to add this function - hopefully Articulate will add this fix to their software.
If it does... then something is wrong with my file, but I was informed by someone else there at Articulate that html5 does NOT support background audio. Can you confirm?
<audio id= "audio1" autoplay="autoplay" loop="loop" onloadeddata="setHalfVolume()"> <source src="music\music.mp3" type="audio/mp3"> <source src="music\music.ogg" type="audio/ogg"> </audio> <script> function setHalfVolume() { var myAudio = document.getElementById("audio1"); myAudio.volume = 0.05; //Changed this to 0.5 or 50% volume since the function is called Set Half Volume ;) } </script>
Place this code just below the <body> tag in the presentation_html5.html file and your music in its own folder.
Note that you can have the audio controls visible by updating the audio tag to be included. The sample above has not controller visible.
5 Replies
Hi Todd! Sounds as if you are offering a possible solution, but I wanted to share this:
Presenter also supports background music, known as playlists. See Managing Playlists.
Not with html5.
If it does... then something is wrong with my file, but I was informed by someone else there at Articulate that html5 does NOT support background audio. Can you confirm?
Here is my work-around:
<audio id= "audio1" autoplay="autoplay" loop="loop" onloadeddata="setHalfVolume()">
<source src="music\music.mp3" type="audio/mp3">
<source src="music\music.ogg" type="audio/ogg">
</audio>
<script>
function setHalfVolume() {
var myAudio = document.getElementById("audio1");
myAudio.volume = 0.05; //Changed this to 0.5 or 50% volume since the function is called Set Half Volume ;)
}
</script>
Place this code just below the <body> tag in the presentation_html5.html file and your music in its own folder.
Note that you can have the audio controls visible by updating the audio tag to be included. The sample above has not controller visible.
You are absolutely right Todd, I apologize. Here is the comparison documentation for anyone that runs across this thread.
Hope your solution will be able to assist someone then :)
This discussion is closed. You can start a new discussion or contact Articulate Support.