Upcoming integration — requires a MIDIWeb build with these controls.
Open Bluetooth MIDI setup
Call the optional native API directly from a button’s click or tap handler in the top-level page.
button.addEventListener('click', () => {
const requested = window.midiweb?.openBluetoothMIDI() ?? false;
if (!requested) {
// Show an accessible fallback for your controller.
}
}); window.midiweb.bluetoothMIDIAvailable reports platform support. The method returns true when the request is posted, or false when unavailable or called
without an active user gesture. It does not report a successful connection.
The dialog appears over MIDIWeb’s Full Screen mode. Dismiss it to return to your controller with that mode still active. Only the active tab’s main frame can present it; pending MIDI permission prompts block presentation.
Available on iPhone, iPad and supported visionOS builds. The in-app Bluetooth dialog is unavailable on Mac. Feature-detect the API for older MIDIWeb versions and other browsers. Do not call the internal WebKit message handler directly.
This opens setup; it does not silently pair devices or grant MIDI permissions. Continue using navigator.requestMIDIAccess() and Web MIDI statechange events.
Launch in Full Screen
const link = 'midiweb://open-url?url=' +
encodeURIComponent('https://example.com/controller') + '&fullscreen=1'; Use fullscreen=1 (or true) on the outer midiweb://open-url link. Always encode the complete destination URL.
This enters MIDIWeb’s browser Full Screen mode, separately from the HTML Fullscreen API or macOS window Full Screen. Omitting the option keeps the existing mode. MIDIWeb must be installed to open the link.
