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

Not working on Safari. #7

Open
Eleveres opened this issue Apr 24, 2020 · 4 comments
Open

Not working on Safari. #7

Eleveres opened this issue Apr 24, 2020 · 4 comments

Comments

@Eleveres
Copy link

Eleveres commented Apr 24, 2020

Hi I can't manage to make your example work on safari 13.1? Do you have any idea why? The console doesn't show any error messages.
Edit: I manage to get Safari play some sound only when the sample rate is set above 25000.

@samirkumardas
Copy link
Owner

Yes, you are right, Sarfati has a buggy implementation of webAudio.
Though minimum standard sampleRate is 8000 Hz according to the standards whereas Safari must provide at least 22050 Hz

So the provided example will not play in safari, I forgot to mention it :(

@Eleveres
Copy link
Author

I can't manage to make it work on any mobile browser either :/

@samirkumardas
Copy link
Owner

It should work https://caniuse.com/#search=web%20audio

Note: it does not initiate playing without a user gesture

@rinkeshpanwar
Copy link

Ii have pcm player in js which takes input from websocket and play it......locally it was working fine but when i deploy to firebase it didnt work instead it works well in chrome...i dont know the problem.

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

3 participants