Skip to content

Commit 3f7d817

Browse files
authored
Merge pull request goldfire#756 from Melatonin64/master
Fix for WebAudio context not being unlocked on Android Chrome >= 55.
2 parents 6bf8c9f + 223cca3 commit 3f7d817

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/howler.core.js

+5
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,11 @@
318318
source.start(0);
319319
}
320320

321+
// Calling resume() on a stack initiated by user gesture is what actually unlocks the audio on Android Chrome >= 55.
322+
if (typeof self.ctx.resume === 'function') {
323+
self.ctx.resume();
324+
}
325+
321326
// Setup a timeout to check that we are unlocked on the next event loop.
322327
source.onended = function() {
323328
source.disconnect(0);

0 commit comments

Comments
 (0)