Document why first play is rejected

This commit is contained in:
Neale Pickett 2019-03-16 10:47:59 -06:00
parent 22e82ac561
commit b91a90e980
1 changed files with 3 additions and 0 deletions

View File

@ -137,6 +137,9 @@ function midiMessage(e) {
break
case 41: // play button
if (val == 127) {
// The first time, the browser will reject this,
// because it doesn't consider MIDI input user interaction,
// so it looks like an autoplaying video.
audio.play()
}
break