midi-synth icon indicating copy to clipboard operation
midi-synth copied to clipboard

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

Open EugenDueck opened this issue 3 years ago • 0 comments

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

EugenDueck avatar Dec 24 '22 05:12 EugenDueck