Replies: 1 comment 4 replies
-
A bit of research led me to ses.setPermissionRequestHandler(handler). It seems Electron requires you to explicitly ask for permission in order to use MIDI. Can you try it and let me know if it works? Depending on what's involved, I might be able to add the necessary code directly inside version 3 of WebMidi.js. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm developing a desktop Electron App that includes this library and it works fine in MacOS, however when running it on Windows 10, it doesn't shows devices.
I'm using the below code to get devices:
I'm suspecting that this sentence may impact it, but not sure, as it should also affect the MacOs version: "From your note it states: "Starting with version 77, Chrome deprecates Web MIDI usage on insecure origins. This means that, going forward, the page will need to be hosted on a secure origin (e.g. https://, localhost: or file:///) and the user will need to explicitely authorize usage (no matter if sysex is used or not)."
I'm adding the following CORS in my index.html, but still not retrieving the devices.
And this is the Console Warning message, even on MacOS:
/Users/flavio/xtractplerv/dist/mac/xtractpler.app/Contents/Resources/app/node_modules/webmidi/webmidi.min.js:31 [Deprecation] Web MIDI will ask a permission to use even if the sysex is not specified in the MIDIOptions since around M82, around May 2020. See https://www.chromestatus.com/feature/5138066234671104 for more details.
Any idea how to fix it?
Beta Was this translation helpful? Give feedback.
All reactions