Forum Discussion
Background Music keep playing.
- 2 years ago
Hi everyone!
Good news! I'm happy to share that we just released Storyline 360 (Build 3.81.31200.0), which includes a feature to control the background audio for each slide using triggers to play, pause, or stop the playlist.
This was highly requested, so we hope it serves you in your course creation! If you run into any snags, don't hesitate to contact our team in a support case.
So I got frustrated with this and decided to look into the code, and I think I managed to actually find a very simple fix that will pause the background music when clicking the play/pause button. You just change a part of one function in the exported files.
This was tested with the XAPI export since that's what we use, I'm not familiar with the other ones but I suspect it would be something similar.
1. Go to "html5/lib/scripts" and open "frame.desktop.min.js"
2. Find
t.currTimeline.togglePlayback()
and replace it with
(t.currTimeline.togglePlayback(), Ub.trigger(Vb.backgroundAudio.TOGGLE))
3. Save and close the file, and the training will now pause the background music when you press the pause button.
This is ridiculous - there already is a function to pause/unpause the background music, and this just hooks it up to the function triggered by the play/pause button of the timeline. How has this request sat here for years when it's this simple?
Might need further testing to see if it works properly in all conditions but this has worked in 3 of my courses.
Related Content
- 11 months ago
- 3 years ago