goldfire / howler.js

Javascript audio library for the modern web.
https://howlerjs.com
MIT License
23.36k stars 2.21k forks source link

Volume changes will not apply on IOS #1507

Closed maxstewartsteele closed 2 years ago

maxstewartsteele commented 2 years ago

I have been trying to create a simple mixer that can have 4 different sounds playing at once, with volume sliders to adjust them. This is the way each of the sounds is set up, with a slider assigned to adjust the volume. It works fine on desktop and android, and online it said setting html5 to false would fix it on IOS but that has not been the case. I have checked and the internal volume attribute is being changed, however, the actual playback volume does not change.

var p = new Howl({ src: [("s/" + e[1])], loop: false, volume: 0.0, html5: false, });

shreyas-jadhav commented 2 years ago

any updates / workarounds on this?

luckydonald commented 2 years ago

That's how iOS works. The two buttons on the side dictate the volume setting.

goldfire commented 2 years ago

I've double-checked this and nothing has changed on this front. When html5 is set to false (FYI, that is the default, so no need to set it explicitly), then the volume can be controlled. This works fine on an iPhone with the Web Audio Tests on howlerjs.com. If you've got a scenario where that isn't working, I would need a full test case rather than just the setup.