# Audio Context Changes

**URL:** <https://discourse.nodered.org/t/audio-context-changes/250>\
**Category:** General\
**Created:** [19 May 2018 09:43 UTC](https://discourse.nodered.org/t/audio-context-changes/250 "2018-05-19T09:43:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chughts](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/chughts/32/139_2.png) [@chughts](https://discourse.nodered.org/u/chughts)\
**Post date:** [19 May 2018 09:43 UTC](https://discourse.nodered.org/t/audio-context-changes/250/1 "2018-05-19T09:43:48Z")

</div>

Not too sure where to ask, but I will start here. As a result of autoplay policy changes on Chrome, any node that makes use of an AudioContext needs to perform a .resume if the state is not 'running' . I am making the change for the microphone node, but a similar change is needed for the play audio node.

> **[Autoplay Policy Changes  |  Web  |  Google Developers](https://developers.google.com/web/updates/2017/09/autoplay-policy-changes#webaudio)**
>
> Learn best practices for good user experiences with the new autoplay policies in Chrome, coming April 2018.

Is it ok for me to make the change and create a pull request.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [19 May 2018 13:01 UTC](https://discourse.nodered.org/t/audio-context-changes/250/2 "2018-05-19T13:01:40Z")

</div>

but of course ! please do so.

---

<div class="post-metadata">

**Author:** ![chughts](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/chughts/32/139_2.png) [@chughts](https://discourse.nodered.org/u/chughts)\
**Post date:** [19 May 2018 15:47 UTC](https://discourse.nodered.org/t/audio-context-changes/250/3 "2018-05-19T15:47:10Z")

</div>

Pull request created.
