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

requestMIDIAccess call with sysex support will be stuck #6492

Closed
g200kg opened this issue Mar 1, 2018 · 2 comments
Closed

requestMIDIAccess call with sysex support will be stuck #6492

g200kg opened this issue Mar 1, 2018 · 2 comments

Comments

@g200kg
Copy link

g200kg commented Mar 1, 2018

NWJS Version : 28.3
Operating System : Windows 64

Unfortunately, the issue #4464 is automatically closed, but I still hope to resolve this issue.

promise returned from requestMIDIAccess() with {sysex:true} will not be resolved nor rejected.
The code below does not show "OK" nor "Error" alert.

alert("requestMIDIAccess start");
navigator.requestMIDIAccess({sysex:true}).then(
    function(ma){alert("requestMIDIAccess OK");midiaccess=ma;},
    function(e){alert("requestMIDIAccess Error");},
  );
alert("requestMIDIAccess end");

In normal browser, this will display a dialog and wait for user's permission, but in NW it seems to be waiting without a dialog being displayed. I think NW should do the same behavior unconditionally as if choosing permission.

@Christywl
Copy link
Contributor

I can reproduce this issue on Linux/Windows with nwjs-sdk-v0.28.3.

@rogerwang
Copy link
Member

This is fixed in git and will be available in the next nightly build.

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

No branches or pull requests

3 participants