Skip to content
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 doesn't play WAV files in Safari 14 #1414

Closed
jusephe opened this issue Oct 23, 2020 · 1 comment
Closed

Howler.js 2.2.0 doesn't play WAV files in Safari 14 #1414

jusephe opened this issue Oct 23, 2020 · 1 comment

Comments

@jusephe
Copy link
Contributor

jusephe commented Oct 23, 2020

I tried to play WAV file in new Safari 14, but it does not work. I also tried to play WAV file without Howler and it works.
Here is code to reproduce the error: https://stackblitz.com/edit/js-nclrak
It gives this loaderror: 'No codec support for selected audio sources.'

So I dig into this and hopefully found a solution.
This method is returning empty string (i.e. false) in Safari 14: audioTest.canPlayType('audio/wav; codecs="1"')
So I added another option without specifying codecs attribute and it fixes the problem. Here is demo to test it: https://stackblitz.com/edit/js-bvgnv8?file=index.js

I submitted new pull request with this fix -> #1415

@goldfire
Copy link
Owner

Thanks for the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants