-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Howler.js 2.2.0 won't play on Safari Mac OS or Safari iOS 14 #1406
Comments
Having the same issue here, at least in iOS 14 (could not test on Mac). iOS 14.1 didn't fix it. Activating Modern Web Audio API on safari settings in iOS also does NOT solve the problem :(. |
Are you using WAV? If so, #1415 fixes the issue. However, the link you provided is working on Safari 14 for me. |
I'll close this in favor of duplicate issue #1406. |
@goldfire I am sorry to say that sounds are still not working on iOS 14. My sounds are WAV files, I'm using howler in master branch where you merged the solution for WAV files and sounds are still not working on iOS 14 even activating Modern Web Audio API on safari settings. EDIT: mp3 files are working fine. WAV files still not working |
@AitorG Can you provide an example? All of the examples in the repo are working fine for me when switched to WAV. |
My game is made in phaser and it's not easy to make and example about my code, but I do something like this:
after, when needed, I do something like I don't know if it's enought, I have iPhone Xs with iOS 14.1 I tested debugging audioTest.canPlayType('audio/wav').replace... as you changed in core and it returns true, but still not playing the sounds. In iOS 13 it was all working fine :( |
Are you playing after user input and with the mute switch off? |
Sure mate, it's a more than one year developing this game and always run OK in iOS 13, I know how to make it works xD. I can provide you a link but in PROD mode you will maybe not able to debug it |
I change one resource to mp3 and it sounds fine at the same time other button plays wav sound and it does not work |
Ok just please forget all my comments while I'm stupid and even using this |
Ah, good to hear. I'll have 2.2.1 out with that fix fairly soon, just trying to wrap up a few other issues first. |
Can you commit compiled files to use the #commit in npm dependence and then test in on mobile? so I could, if possible, get it working on production :) |
@AitorG v2.2.1 is now available on npm with this fix. |
I'm still having problems with playing |
Sample LINK provided below:
https://inglesuniversal.com/share/?r=20201007094154638
It was working fine until apple updated Safari on both Mac and iOS 14.0.1
No errors shown inside Safari console
Best regards
The text was updated successfully, but these errors were encountered: