Chrome’s web audio change is bad news
holovaty.com
holovaty.com
[1] https://bugs.chromium.org/p/chromium/issues/detail?id=840866
A better implementation would be if when the website first tried to play audio sans interaction, a permission request was made like the ones that show up for websites that want to do desktop notifications, etc. That way the failure isn't silent and the user has some control over the option to allow or deny the permission on a site-by-site basis.
Having said that, I find that websites auto-playing audio is such a nuisance these days that I'd personally selfishly allow every project/business that relies on the ability to just die and not really shed a tear if there was some reason the Chrome team couldn't come up with a better implementation.
I've been experimenting with an architecture where all app logic lives in a web worker, so in order to respond to events, the event gets handled on the main thread and forwarded to the worker, where it then triggers app logic which sends commands back to the main thread.
Problem is, once you cross a thread boundary, you lose all the context which classifies your calls as "in result of a user gesture", so you need to resort to hacky workarounds that force you to keep your app logic on the main thread :(
There! I just supported my opinion just as well as this article supported Holovaty's.
As an added bonus, I happen to be right. :)
Maybe native apps should be considered more often.
The article doesn’t really explain why it’s such an issue for them though.