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

The AudioContext was not allowed to start. #125

Open
abrambailey opened this issue Apr 15, 2024 · 3 comments
Open

The AudioContext was not allowed to start. #125

abrambailey opened this issue Apr 15, 2024 · 3 comments

Comments

@abrambailey
Copy link

I'm on Chrome Version 123.0.6312.123 (Official Build) (arm64) ... Getting the following when I try to access the default yaml file in chrome (localhost:8000) in the chrome console:

startup.js:171 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu

MushraAudioControl.js:109 Uncaught TypeError: Cannot read properties of undefined (reading 'length')
    at MushraAudioControl.convolve (MushraAudioControl.js:109:60)
    at MushraAudioControl.createLowerAnchor35 (MushraAudioControl.js:82:32)
    at new MushraAudioControl (MushraAudioControl.js:48:52)
    at MushraPage.init (MushraPage.js:70:29)
    at PageManager.start (PageManager.js:98:27)
    at callbackFilesLoaded (startup.js:34:15)
    at Object.<anonymous> (AudioFileLoader.js:49:11)
@abrambailey
Copy link
Author

abrambailey commented Apr 15, 2024

I noticed this related issue, but possibly a new fix is needed? #26

More details on handling this: https://developer.chrome.com/blog/autoplay/#webaudio

@abrambailey
Copy link
Author

I was able to workaround this by setting createAnchor35 & createAnchor70 to false to get the demo running. Not sure what the issue was there.

@faroit
Copy link
Collaborator

faroit commented Apr 15, 2024

@abrambailey what config are you running? can you send a url to reproduce?

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