Forum Discussion
JacksonHamner
10 years agoCommunity Member
Background Music Demo
I made a demo featuring background music that goes through the whole course (doesn't change from slide to slide). The user can chose from four songs to listen to and can adjust the volume, and the s...
charleneneale
9 years agoCommunity Member
Hi Anik,
I'm not sure if you have already tried this JS, it was posted here previously and works brilliantly:
It is possible to stop the music and resume it while the video is playing. If you execute this javascript trigger it will mute the music:
var audio = document.getElementById('bgSong');
audio.volume = 0.0;
and to resume the music:
var audio = document.getElementById('bgSong');
audio.volume = 1.0;
Good luck with your project,
Charlene
- Crystal-Horn9 years agoStaff
Thanks, Charlene, for popping in and lending a hand! :D