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

Web Audio example no longer works in Chrome 127.0.6533.100 #3821

Open
codethisio opened this issue Aug 13, 2024 · 1 comment
Open

Web Audio example no longer works in Chrome 127.0.6533.100 #3821

codethisio opened this issue Aug 13, 2024 · 1 comment
Labels

Comments

@codethisio
Copy link

I am attempting to create gain controls for each audio channel in my Wavesurfer implementation. I noticed an issue where Chrome does not seem to like manipulating an audio element prior to the UI being "interactive" by the user.

When testing the Web Audio example (https://wavesurfer.xyz/examples/?webaudio.js) in Chrome 127.0.6533.100, the Play/Pause button on the audio element are non-functional. This is consistent with my own app as well.

Everything works correctly in Firefox.

I need to preload the Wavesurfer instance to display the waveform but the UI is technically not interactive yet. However, since the Wavesurfer binding occurs on load of the view, the audio element bombs out (presumably) due to the Chrome autoplay policy.

image
@codethisio codethisio added the bug label Aug 13, 2024
@katspaugh
Copy link
Owner

Thanks! I guess the example has to be adjusted to init Web Audio on click.

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

No branches or pull requests

2 participants