You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.jsI submitted new pull request with this fix -> #1415
The text was updated successfully, but these errors were encountered: