Discussed earlier, i know. But maybe some help here.
We have an elearning with background music, this works. Problem is that it works fine in the browser. if you launch the Articulate player, it won't play the music. Is there any work around to make it still play in the player ?
Storyline doesn't support background music, so if you've set up something custom you may want to share the .story file and/or code so that the community can take a look and weigh in on any other behavior or ideas you could utilize.
We have put this code in the index_lms_html5.html. It works fine with HTML5 output.
If we place it also in the story or index.html it doesn't we assume it is because the player only loads the complete SWF. Is there no other file loaded were we could place code in order to play in the articulate player ?
JavaScript isn't supported in the Articulate Mobile Player app per the article here, and we also don't offer support for the background music as it's not a functionality of Storyline.
Just an FYI responding via email includes your signature here, so you may want to visit this thread and edit the post to remove your signature.
8 Replies
Hi Joep,
Storyline doesn't support background music, so if you've set up something custom you may want to share the .story file and/or code so that the community can take a look and weigh in on any other behavior or ideas you could utilize.
We have put this code in the index_lms_html5.html. It works fine with HTML5 output.
If we place it also in the story or index.html it doesn't we assume it is because the player only loads the complete SWF. Is there no other file loaded were we could place code in order to play in the articulate player ?
End of body:
<audio id="audio" preload="auto" autoplay loop autobuffer>
<source src="sound.mp3" type="audio/mp3">
</audio>
<audio id="soundHandle" style="display:none;"></audio>
Underneath in a separate tag:
<script>
var soundHandle = document.getElementById('soundHandle');
$(function() {
var test = addEventListener('touchstart', function(){
doFunction();
});
var test = addEventListener('click', function(){
doFunction();
});
var doFunction = function(){
soundHandle.src = 'sound.mp3';
soundHandle.loop = true;
soundHandle.play();
doFunction = undefined;
}
});
window.addEventListener("load",function() {
// Set a timeout...
window.scrollTo(0, 0);
});
</script>
I don't think there is anyway to do this in the AMP
Thanks Phil for confirming - since it's not something we support I wasn't sure entirely.
Well it works in html5.
Thanks Joep for that update - and I'm glad to hear it works in HTML5.
If it works in html5 there should BE a way to get it done in the player, or not?
Joep van Drunen
Hi Joep,
JavaScript isn't supported in the Articulate Mobile Player app per the article here, and we also don't offer support for the background music as it's not a functionality of Storyline.
Just an FYI responding via email includes your signature here, so you may want to visit this thread and edit the post to remove your signature.
This discussion is closed. You can start a new discussion or contact Articulate Support.