Detect if MIDI is connected in the web API

I am experimenting with the Web Midi API in Chrome / OS X. So far I am getting good results, but I am wondering:

Is there a way to determine if the MIDI WHILE interface is connected / disconnected when the application is running?

Now it works to restart the browser so that the application finds out that the interface is present or not ...

There seems to be a MIDIAccess onconnect / ondisconnect event, but I don't know what to do to make them catch fire. Is it still implemented in Chrome (Canary)?

+4
source share
1 answer

Chrome : connect/disconnect. , , . (AKA - , Chrome .:)

UPDATE MAY 2015: Chrome 43 , 43 .

+7

All Articles