Skip to content

Commit 26f4ba5

Browse files
authored
Merge pull request #37 from GoogleChromeLabs/beaufortfrancois-patch-1
Fix WebAudio playback due to autoplay policy changes
2 parents 1f73889 + f097c28 commit 26f4ba5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/scripts/main.min.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@
7777
return;
7878
}
7979

80+
// AudioContext must be resumed after the document received a user gesture to enable audio playback.
81+
audioCtx.resume();
82+
8083
var xhr = new XMLHttpRequest();
8184

8285
xhr.onload = function() {

0 commit comments

Comments
 (0)