MicrosoftEdge / Demos-old

Open source and interoperable demos for Microsoft Edge Dev site
https://dev.windows.com/en-us/microsoft-edge/testdrive/
Other
438 stars 268 forks source link

Autoplay policy changes for AudioContext #412

Closed Andy1210 closed 6 years ago

Andy1210 commented 6 years ago

@molant

What this PR does

Because of the AutoPlay policy changes the AudioContext is in suspended state by default (https://developers.google.com/web/updates/2017/09/autoplay-policy-changes). It can be resumed after a user interaction. That's what my fix is doing, its resuming the AudioContext after the user is clicking on the Start Demo button.

Requirements

alrra commented 6 years ago

Thanks, @Andy1210!