这是
实验性技术
检查
浏览器兼容性表格
要小心谨慎在生产中使用这之前。
MIDIConnectionEvent
接口在
Web MIDI API
is the event passed to the
onstatechange
event handler of the
MIDIAccess
interface and the
onstatechange
event of the
MIDIPorts
interface. This occurs any time a new port becomes available, or when a previously available port becomes unavailable. For example, this event is fired whenever a MIDI device is either plugged in to or unplugged from a computer.
MIDIConnectionEvent.MIDIConnectionEvent
MIDIConnectionEvent
对象。
MIDIConnectionEvent.port
MIDIPort
instance for a port that has been connected or disconnected."
| 规范 | 状态 | 注释 |
|---|---|---|
| Web MIDI API | 工作草案 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
MIDIConnectionEvent
|
Chrome 43 | Edge ≤79 | Firefox ? | IE 不支持 No | Opera 30 | Safari ? | WebView Android 43 | Chrome Android 43 | Firefox Android ? | Opera Android 30 | Safari iOS ? | Samsung Internet Android 4.0 |
MIDIConnectionEvent()
构造函数
|
Chrome 43 | Edge ≤79 | Firefox ? | IE 不支持 No | Opera 30 | Safari ? | WebView Android 43 | Chrome Android 43 | Firefox Android ? | Opera Android 30 | Safari iOS ? | Samsung Internet Android 4.0 |
port
非标
|
Chrome 43 | Edge ≤79 | Firefox ? | IE 不支持 No | Opera 30 | Safari ? | WebView Android 43 | Chrome Android 43 | Firefox Android ? | Opera Android 30 | Safari iOS ? | Samsung Internet Android 4.0 |
完整支持
不支持
兼容性未知
实验。期望将来行为有所改变。
非标。预期跨浏览器支持较差。
MIDIConnectionEvent