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

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 ?

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.

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

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

2 Likes

Thanks, I was suspected it was a browser restriction, but would it be possible to add something in 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.

:man_shrugging:

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

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