Document why first play is rejected
This commit is contained in:
parent
22e82ac561
commit
b91a90e980
|
@ -137,6 +137,9 @@ function midiMessage(e) {
|
||||||
break
|
break
|
||||||
case 41: // play button
|
case 41: // play button
|
||||||
if (val == 127) {
|
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()
|
audio.play()
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue