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

new AudioContext() and requestMIDIAccess() do not work on modern browsers #29

Open
EugenDueck opened this issue Dec 24, 2022 · 0 comments · May be fixed by #30
Open

new AudioContext() and requestMIDIAccess() do not work on modern browsers #29

EugenDueck opened this issue Dec 24, 2022 · 0 comments · May be fixed by #30

Comments

@EugenDueck
Copy link

These days, new AudioContext() and requestMIDIAccess() need to be initiated by a user gesture.

Error messages in Firefox:

An AudioContext was prevented from starting automatically. It must be created or resumed after a user gesture on the page.

Uncaught (in promise) TypeError: selectMIDI is null
    populateMIDIInSelect https://webaudiodemos.appspot.com/midi-synth/js/midi.js:44
    onMIDIStarted https://webaudiodemos.appspot.com/midi-synth/js/midi.js:87
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

Successfully merging a pull request may close this issue.

1 participant