Browse Source

Fix for Chrome autoplay policy changes

master
Marouf Arnaout 5 years ago
parent
commit
3337832992
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      emscripten/js/demo.js

+ 5
- 0
emscripten/js/demo.js View File

@@ -148,6 +148,11 @@ function stop() {
function speak() {
console.log('Inside speak()');

if (ctx.state === 'suspended') {
console.log('Resuming AudioContext...');
ctx.resume();
console.log('Resuming AudioContext... done');
}
console.log(' Stopping...');
stop();
console.log(' Stopping... done');

Loading…
Cancel
Save