MIDIAccess: outputs Eigenschaft

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Sicherer Kontext: Diese Funktion ist nur in sicheren Kontexten (HTTPS) in einigen oder allen unterstützenden Browsern verfügbar.

Die outputs schreibgeschützte Eigenschaft des MIDIAccess-Interfaces bietet Zugriff auf verfügbare MIDI-Ausgabeports.

Wert

Eine Instanz von MIDIOutputMap.

Beispiele

Die Methode Navigator.requestMIDIAccess() gibt ein Promise zurück, das mit einem MIDIAccess-Objekt aufgelöst wird. Das Ausgeben des Werts von outputs in die Konsole gibt eine MIDIOutputMap zurück.

js
navigator.requestMIDIAccess().then((access) => {
  console.log(access.outputs);
});

Spezifikationen

Specification
Web MIDI API
# dom-midiaccess-outputs

Browser-Kompatibilität

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
outputs

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
See implementation notes.