HTML5 SoundChannel.stop not working


#1

Hello!
I have a background music in my game, so I need it to stop when game lose focus.
I do musicChan.stop();, but music keeps playing, and just get more quite.
Works fine on native and flash.
Any help with that?


#2

Does .stop () work if you use it at any other time (other than when focus is lost?) Perhaps this is an issue with timing?


#3

Nope, still not working.
I’ve made a sample project, both for sound and preloader: Customize preloader html5 : different background image?


#4

I had faced this issue before.
I could solve it only by making volume 0


#5

Yep, after trying different approaches and trying to find the problem (looks like something with howler.js library), I ended up setting music volume to 0.
Thank you for solution, let’s hope the problem will be fixed eventually.