# HTML5/Javascript AudioContext requires user interaction

**URL:** <https://qa.fmod.com/t/html5-javascript-audiocontext-requires-user-interaction/16009>\
**Category:** FMOD Engine\
**Created:** [July 25, 2020, 12:13am UTC](https://qa.fmod.com/t/html5-javascript-audiocontext-requires-user-interaction/16009 "2020-07-25T00:13:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joshua\_strawchildgam](https://avatars.discourse-cdn.com/v4/letter/j/c4cdca/32.png) [@joshua\_strawchildgam](https://qa.fmod.com/u/joshua_strawchildgam)\
**Post date:** [July 25, 2020, 12:13am UTC](https://qa.fmod.com/t/html5-javascript-audiocontext-requires-user-interaction/16009/1 "2020-07-25T00:13:37Z")

</div>

Hey folks, came here when I noticed that it was absolutely required for users to click on the webpage before the music could be played.

I get the concern around ads playing audio and being as such annoying. However that complicates my project where the user isn’t really expected to click on anything.

I suppose I could add a “click here to begin” button that literally does nothing but start the audio. But it would be required every. single. time. the user views a page. I don’t quite understand the hypersensitivity for the ads sound when sounds/music playing on something like a landing page isn’t at all uncommon.

I’m open to suggestions on this, I just hate thinking of requiring a click in order to start the audio. How about scrolling? Or would I have to hack a “click” solution in order to trick this? Honestly not trying to do anything bad, just want to give my viewers good UX.

---

<div class="post-metadata">

**Author:** ![joshua\_strawchildgam](https://avatars.discourse-cdn.com/v4/letter/j/c4cdca/32.png) [@joshua\_strawchildgam](https://qa.fmod.com/u/joshua_strawchildgam)\
**Post date:** [July 27, 2020, 2:29am UTC](https://qa.fmod.com/t/html5-javascript-audiocontext-requires-user-interaction/16009/2 "2020-07-27T02:29:58Z")

</div>

So this is actually not an issue with FMOD, but actually with Chrome itself, so I understand this is something we’ll just have to work around with a button or something to unmute sounds or something similar.

---

<div class="post-metadata">

**Author:** ![mathew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mathew/32/431_2.png) [@mathew](https://qa.fmod.com/u/mathew)\
**Post date:** [July 28, 2020, 12:51am UTC](https://qa.fmod.com/t/html5-javascript-audiocontext-requires-user-interaction/16009/3 "2020-07-28T00:51:28Z")

</div>

That is correct, this requirement is enforced by the browser unfortunately.
