Scratch-gui: The AudioContext was not allowed to start.

Created on 7 Feb 2019  路  4Comments  路  Source: LLK/scratch-gui

Expected Behavior

No warnings in console for production build

Actual Behavior

Keep raising warning (The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu) before user click the page.

And this problem is exists in the current online version https://scratch.mit.edu/projects/editor

screen shot 2019-02-07 at 5 37 19 pm

Steps to Reproduce

Operating System and Browser

  • Mac OS 10.14.2 Chrome 71
  • Chrome OS 71

related issue #2017

Low Impact Low Severity bug ergonomics has patch

Most helpful comment

Why is this issue closed? The problem still exists in chrome 78 on mac and windows, not in firefox. The warnings are stopping, when you click in the project.

All 4 comments

Looks like Firefox is going to block audio autoplay too.

We expect to roll out audible autoplay blocking enabled by default, in Firefox 66, scheduled for general release on 19 March 2019

https://hacks.mozilla.org/2019/02/firefox-66-to-block-automatically-playing-audible-video-and-audio/

Why is this issue closed? The problem still exists in chrome 78 on mac and windows, not in firefox. The warnings are stopping, when you click in the project.

The issue seems to be unsolved; don't know what reasoning was behind closing it

Note that #5444 partially resolves this, but there needs to be a further change.

node_modules/scratch-audio/src/AudioEngine.js calls https://github.com/LLK/scratch-audio/blob/develop/src/StartAudioContext.js ; that also needs a fix

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ericrosenbaum picture ericrosenbaum  路  4Comments

thisandagain picture thisandagain  路  3Comments

fsih picture fsih  路  3Comments

chrisgarrity picture chrisgarrity  路  4Comments

cyx2015s picture cyx2015s  路  4Comments