From b91a90e98027f8c94b64d043bd49cf39257eb9d2 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Sat, 16 Mar 2019 10:47:59 -0600 Subject: [PATCH] Document why first play is rejected --- playlist.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/playlist.js b/playlist.js index 4c2eb0b..c297b33 100644 --- a/playlist.js +++ b/playlist.js @@ -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