There was a question raised if Web MIDI should pause updates when the visibility state of the document changes to "hidden" similar to what other APIs do, such as the Gamepad API (https://w3c.github.io/gamepad/#handling-visibility-change).
Some things to consider:
- The Web MIDI API is gated behind a permission prompt, whereas other similar APIs may not be.
- There are legitimate uses for running Web MIDI in a "hidden" document, such as playing a musical instrument while looking at the sheet music in a different tab or application.
- There are identified cases of websites using Web MIDI solely to fingerprint users.
Currently the spec says nothing about visibility state.
There was a question raised if Web MIDI should pause updates when the visibility state of the document changes to "hidden" similar to what other APIs do, such as the Gamepad API (https://w3c.github.io/gamepad/#handling-visibility-change).
Some things to consider:
Currently the spec says nothing about visibility state.