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...
WilliamHuang
7 years agoCommunity Member
So here is the problem. This method doesn't work on Safari because Safari doesn't support volume control from javascript. See https://www.ibm.com/developerworks/library/wa-ioshtml5/wa-ioshtml5-pdf.pdf. I think the best way for use your code to play mp3 files with volume set to 1 (max volume) , and encode the desired volume using editing the audio file. Eg. 3 versions of the mp3 loud, medium and soft, and just switch files when you use the volume slider.