# \[bug\] Page refresh, sound dont play until a mouse click in the page

**URL:** <https://forum.inductiveautomation.com/t/bug-page-refresh-sound-dont-play-until-a-mouse-click-in-the-page/84710>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [January 24, 2024, 4:20pm UTC](https://forum.inductiveautomation.com/t/bug-page-refresh-sound-dont-play-until-a-mouse-click-in-the-page/84710 "2024-01-24T16:20:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [January 24, 2024, 4:20pm UTC](https://forum.inductiveautomation.com/t/bug-page-refresh-sound-dont-play-until-a-mouse-click-in-the-page/84710/1 "2024-01-24T16:20:35Z")

</div>

We use an audio component to play a sound when a new alam occur.  
The audio component is in a right shared dock Always visible.

It works well but when we refresh the browser page (chrome), the new alarme doesnt trigger any sound until we make a mouse click on the page.

Is it normal ? Can we avoid this ?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 24, 2024, 4:24pm UTC](https://forum.inductiveautomation.com/t/bug-page-refresh-sound-dont-play-until-a-mouse-click-in-the-page/84710/2 "2024-01-24T16:24:33Z")

</div>

Probably a behavior built in to Chrome. There might be a browser level setting to disable it, but it's probably the way it is because of decades of malicious/hostile advertisements and malware playing obnoxious sounds as much as possible.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 24, 2024, 4:26pm UTC](https://forum.inductiveautomation.com/t/bug-page-refresh-sound-dont-play-until-a-mouse-click-in-the-page/84710/3 "2024-01-24T16:26:24Z")

</div>

`https://developer.chrome.com/blog/autoplay/`

EDIT: No idea why the forum is adding random language tags to this link...

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [January 24, 2024, 4:43pm UTC](https://forum.inductiveautomation.com/t/bug-page-refresh-sound-dont-play-until-a-mouse-click-in-the-page/84710/4 "2024-01-24T16:43:58Z")

</div>

Thanks, I was suspected it was a browser restriction, but would it be possible to add something in audio component to autoplay by default

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 24, 2024, 5:16pm UTC](https://forum.inductiveautomation.com/t/bug-page-refresh-sound-dont-play-until-a-mouse-click-in-the-page/84710/5 "2024-01-24T17:16:01Z")

</div>

> [@mazeyrat](#):
>
> audio component to autoplay by default

Paul just explained why not. The user has to manually allow this permission. Or the user's IT group that controls the install of the browser has to inject it. It cannot come from the website the user visits. _ **That's the whole point.** _

🤷‍♂️

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [January 24, 2024, 5:45pm UTC](https://forum.inductiveautomation.com/t/bug-page-refresh-sound-dont-play-until-a-mouse-click-in-the-page/84710/6 "2024-01-24T17:45:04Z")

</div>

Ok I see. But its a bit anoying for our use case...

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 24, 2024, 5:46pm UTC](https://forum.inductiveautomation.com/t/bug-page-refresh-sound-dont-play-until-a-mouse-click-in-the-page/84710/7 "2024-01-24T17:46:39Z")

</div>

You have the option to **not** use a browser-based GUI. Then you won't have the browser-based annoyances. 😛
