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

Waveform animation not working on iOS for mp3 mimeType #26

Open
francescocretti opened this issue Dec 30, 2020 · 1 comment
Open

Waveform animation not working on iOS for mp3 mimeType #26

francescocretti opened this issue Dec 30, 2020 · 1 comment

Comments

@francescocretti
Copy link

Hi everyone,
I'm integrating this component into an Ionic app.

Everything works well except that when using mp3 encoding, the waveform (or soundbars, it doesn't matter) is not visible in iOS Safari.
Works in all other cases I tested (Chrome on Ubuntu/Mac, Chrome on Android, Safari on Mac).

Anyone encountered this problem?

I was also thinking to develop a custom animation (e.g. a simple meter) but I can't figure out how to access buffer data from the ReactMic component.
Any ideas?

Thanks in advance.
Francesco

@francescocretti
Copy link
Author

francescocretti commented Dec 30, 2020

I took a further look into the bug.
Seems that in iOS Safari the data got from the analyzerNode is is always an array of 128 values (with the analyser.getByteTimeDomainData method used in Visualizer.js).

The problem could be related to the fact that the AnalyzerNode is not initalized from an user gesture (see https://stackoverflow.com/questions/52649171/web-audio-api-getbytetimedomaindata-not-working-in-safari), but the fact that it works in WAV mode is odd.

I couldn't find a workaround so far.

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

1 participant